The SftpItemCollection type exposes the following members.

Constructors

  NameDescription
Public methodSftpItemCollection
Initializes a new instance of the SftpItemCollection class.

Methods

  NameDescription
Public methodAdd(FileSystemItem)
Public methodAdd(SftpItem)
Adds the item to the collection.
Public methodAddRange(IEnumerable<(Of <<'(FileSystemItem>)>>))
Public methodAddRange(IEnumerable<(Of <<'(SftpItem>)>>))
Adds the elements of the specified collection to the end of the SftpItemCollection.
Public methodClear
Removes all items from the collection.
(Inherited from FileSystemItemCollection.)
Public methodClone
Creates a shallow copy of the collection.
Public methodContains(String)
Determines whether the item with the specified path is in the collection.
(Inherited from FileSystemItemCollection.)
Public methodContains(FileSystemItem)
Public methodContains(SftpItem)
Determines whether the item is in the collection.
Public methodCopyTo(Array, Int32)
Copies the range of elements from the collection to a compatible one-dimensional Array, starting at the specified index of the target array.
Public methodCopyTo(array<FileSystemItem>[]()[][], Int32)
Copies the range of elements from the collection to a one-dimensional FileSystemItem array, starting at the specified index of the target array.
(Inherited from FileSystemItemCollection.)
Public methodCopyTo(array<SftpItem>[]()[][], Int32)
Copies the range of elements from the collection to a one-dimensional SftpItem array, starting at the specified index of the target array.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator()()()()
Gets an IEnumerator<(Of <(<'T>)>)> for the collection.
Public methodGetEnumerator(Int32, Int32) Obsolete.
Public methodGetFiles(String)
Returns the names of files in the collection that match the specified search pattern.
(Inherited from FileSystemItemCollection.)
Public methodGetFiles(Regex)
Returns the paths of files in the collection that match the specified search pattern.
(Inherited from FileSystemItemCollection.)
Public methodGetFiles(String, Boolean)
Returns the names of files in the collection that match the specified search pattern.
(Inherited from FileSystemItemCollection.)
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetTotalSize
Gets the total size of files contained in the collection.
(Inherited from FileSystemItemCollection.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodCheckItem
Validates whether the item is correct and can be added.
(Overrides FileSystemItemCollection..::..CheckItem(FileSystemItem).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(Int32) Obsolete.
Public methodRemove(String)
Removes the item with the specified path from the collection.
Public methodRemove(FileSystemItem)
Public methodRemove(SftpItem)
Removes the specified item from the collection. Fails if not found.
Public methodRemoveAt
Removes the item at the specified index from the collection.
(Inherited from FileSystemItemCollection.)
Public methodSort()()()()
Sorts the items in the entire collection alphabetically.
(Inherited from FileSystemItemCollection.)
Public methodSort(IComparer)
Sorts the elements in the entire collection using the specified comparer.
(Inherited from FileSystemItemCollection.)
Public methodSort(Int32, Int32, IComparer)
Sorts the elements in a section of the collection using the specified comparer.
(Inherited from FileSystemItemCollection.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyCount
Gets the number of elements contained in the collection.
(Inherited from FileSystemItemCollection.)
Public propertyIsSynchronized
Gets a value indicating whether access to the collection is synchronized (thread-safe).
Public propertyItem[([( Int32])])
Gets the item at the specified index.
Public propertyItem[([( String])])
Gets the item of the specified path.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the collection.
(Inherited from FileSystemItemCollection.)
Public propertyUsePath
Gets or sets a value that indicates whether to use a Path or Name for pattern matching and return values in the GetFiles(Regex) method.
(Inherited from FileSystemItemCollection.)

Explicit Interface Implementations

See Also