SftpItemCollection Class
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)
Provides a container for a collection of Sftp
Syntax
public class SftpItemCollection : FileSystemItemCollection, ICollection<FileSystemItem>, IEnumerable<FileSystemItem>, ICollection, ICollection<SftpItem>, IEnumerable<SftpItem>, IEnumerable
Implements
Inherited Members
Constructors
Name | Description |
---|---|
Sftp |
Initializes a new instance of the Sftp |
Properties
Name | Description |
---|---|
Count | Gets the number of elements contained in the collection.
Inherited from File |
Is |
Gets a value indicating whether access to the collection is synchronized (thread-safe). |
Item[Int32] | Gets the item at the specified index. |
Item[String] | Gets the item of the specified path. |
Sync |
Gets an object that can be used to synchronize access to the collection.
Inherited from File |
Use |
Gets or sets a value that indicates whether to use a Path or Name for pattern matching
and return values in the Get |
Methods
Name | Description |
---|---|
Add(File |
Adds the specified item to the collection.
Inherited from File |
Add(Sftp |
Adds the item to the collection. |
AddRange(IEnumerable<FileSystemItem>) | Adds the elements of the specified collection to the end of the FileSystemItemCollection.
Inherited from File |
AddRange(IEnumerable<SftpItem>) | Adds the elements of the specified collection to the end of the SftpItemCollection. |
Check |
Validates whether the item is correct and can be added. |
Clear() | Removes all items from the collection.
Inherited from File |
Clone() | Creates a shallow copy of the collection. |
Contains(File |
Determines whether the item is in the collection.
Inherited from File |
Contains(Sftp |
Determines whether the item is in the collection. |
Contains(String) | Determines whether the item with the specified path is in the collection.
Inherited from File |
Copy |
Copies the range of elements from the collection to a one-dimensional
File |
Copy |
Copies the range of elements from the collection to a one-dimensional
Sftp |
Copy |
Copies the range of elements from the collection to a compatible one-dimensional Array, starting at the specified index of the target array. |
Get |
Gets an IEnumerator<T> for the collection. |
Get |
Returns the names of files in the collection that match the specified search pattern.
Inherited from File |
Get |
Returns the names of files in the collection that match the specified search pattern.
Inherited from File |
Get |
Returns the paths of files in the collection that match the specified search pattern.
Inherited from File |
Get |
Gets the total size of files contained in the collection.
Inherited from File |
Remove(File |
Removes the specified item from the collection.
Inherited from File |
Remove(Sftp |
Removes the specified item from the collection. Fails if not found. |
Remove(String) | Removes the item with the specified path from the collection. |
Remove |
Removes the item at the specified index from the collection.
Inherited from File |
Sort() | Sorts the items in the entire collection alphabetically.
Inherited from File |
Sort(IComparer) | Sorts the elements in the entire collection using the specified comparer.
Inherited from File |
Sort(Int32, Int32, IComparer) | Sorts the elements in a section of the collection using the specified comparer.
Inherited from File |
Explicit Interface Implementations
Name | Description |
---|---|
ICollection<FileSystemItem>.IsReadOnly | Gets a value indicating whether the collection is read-only.
Inherited from File |
ICollection<SftpItem>.IsReadOnly | Gets a value indicating whether the collection is read-only. |
ICollection<SftpItem>.Remove(SftpItem) | Removes the specified item from the collection. |
IEnumerable. |
Returns an enumerator that can iterate through the collection
Inherited from File |