

'DeclarationPublic Class StreamFile Inherits AbstractFile
'UsageDim instance As StreamFile
public class StreamFile : AbstractFile
' Create a stream that access a zip file contained within the resources ' of an application. Dim resources As Stream = Me.GetType().Assembly.GetManifestResourceStream( "Resources.zip" ) ' Initialize a new instance of the StreamFile class specifying the inner stream ' as well as the name of the file. Dim file As New StreamFile( resources, "Resources.zip" ) ' Initialize a new instance of the ZipArchive class using ' newly created StreamFile object. Dim zip As New ZipArchive( file ) ' Copy files from the zip file contained within the resources to a local folder. zip.CopyFilesTo( New DiskFolder( "d:\Destination" ), false, true )
// Create a stream that access a zip file contained within the resources // of an application. Stream resources = this.GetType().Assembly.GetManifestResourceStream( "Resources.zip" ); // Initialize a new instance of the StreamFile class specifying the inner stream // as well as the name of the file. StreamFile file = new StreamFile( resources, "Resources.zip" ); // Initialize a new instance of the ZipArchive class using // newly created StreamFile object. ZipArchive zip = new ZipArchive( file ); // Copy files from the zip file contained within the resources to a local folder. zip.CopyFilesTo( new DiskFolder( @"d:\Destination" ), false, true );
System.Object
System.MarshalByRefObject
Xceed.FileSystem.FileSystemItem
Xceed.FileSystem.AbstractFile
Xceed.FileSystem.StreamFile
| Name | Description | |
|---|---|---|
![]() | StreamFile Constructor | Overloaded. Specialization of the AbstractFile class that implements access to any type of stream as though it were a file. |
| Name | Description | |
|---|---|---|
![]() | Attributes | Gets or sets the attributes of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CreationDateTime | Gets or sets the creation date and time of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | Exists | Gets a boolean value indicating if the item physically exists. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | FullName | Gets the full name of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HasAttributes | Gets a boolean value indicating if the item supports attributes. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HasCreationDateTime | Gets a boolean value indicating if the item supports having a creation date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HasLastAccessDateTime | Gets a boolean value indicating if the item supports having a last access date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HasLastWriteDateTime | Gets a boolean value indicating if the item supports having a last write date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HostedFullName | Gets a human-readable full pathname representing the fully qualified path of all host files containing the item and the path of the item itself. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | HostFile | Gets an AbstractFile containing an archived version of this FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | LastAccessDateTime | Gets or sets the last access date and time of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | LastWriteDateTime | Gets or sets the modification date and time of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | Name | Gets or sets the filename, without path, of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ParentFolder | Gets a reference to the parent folder of this item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | RootFolder | Gets a reference to the root folder of this item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | Size | Gets the size of the file in bytes. (Inherited from Xceed.FileSystem.AbstractFile) |
| Name | Description | |
|---|---|---|
![]() | BatchUpdateable | Overridden. Gets the IBatchUpdateable implementation for this item. |
![]() | DoAttributes | Overridden. Gets or sets the attributes of the item. |
![]() | DoCreationDateTime | Overridden. Gets or sets the creation date and time of the item. |
![]() | DoExists | Overridden. Gets a boolean value indicating if the item physically exists. |
![]() | DoFullName | Overridden. Gets the full name of the item. |
![]() | DoHasAttributes | Gets a boolean value indicating if the item supports attributes. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoHasCreationDateTime | Gets a boolean value indicating if the item supports having a creation date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoHasLastAccessDateTime | Gets a boolean value indicating if the item supports having a last access date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoHasLastWriteDateTime | Gets a boolean value indicating if the item supports having a last write date and time. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoLastAccessDateTime | Overridden. Gets or sets the last access date and time of the item. |
![]() | DoLastWriteDateTime | Overridden. Gets or sets the modification date and time of the item. |
![]() | DoName | Overridden. Gets or sets the filename, without path, of the item. |
![]() | DoParentFolder | Overridden. Gets a reference to the parent folder of this item. |
![]() | DoRootFolder | Overridden. Gets a reference to the root folder of this item. |
![]() | DoSize | Overridden. Gets the size of the file in bytes. |
![]() | InvalidChars | Gets the characters that are invalid in file and folder names. (Inherited from Xceed.FileSystem.FileSystemItem) |
| Name | Description | |
|---|---|---|
![]() | ApplyPropertiesTo | Overloaded. Copies the item's properties to another item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CopyTo | Overloaded. Copies the file's data to another file. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | Create | Overloaded. Creates the physical item represented by this FileSystemItem object. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CreateObjRef | (Inherited from System.MarshalByRefObject) |
![]() | CreateWrite | Overloaded. Creates a file and opens it for writing. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | Delete | Overloaded. Permanently deletes the physical item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoCopyToComplete | (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | DoCopyToLoop | (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | DoCopyToSetup | (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | GetLifetimeService | (Inherited from System.MarshalByRefObject) |
![]() | GetMetadata | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | InitializeLifetimeService | (Inherited from System.MarshalByRefObject) |
![]() | IsSameAs | Overridden. Gets a boolean value indicating if the source and target file are the same. |
![]() | MoveTo | Overloaded. Moves the contents of the AbstractFile object to the target AbstractFile object. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | OpenRead | Overloaded. Opens the file for reading. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | OpenWrite | Overloaded. Opens the file for writing. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | Refresh | Overloaded. Re-reads the information from the physical item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | SetName | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ToString | Returns the full name of the item. (Inherited from Xceed.FileSystem.FileSystemItem) |
| Name | Description | |
|---|---|---|
![]() | ApplyPropertiesToCore | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | BuildList | Builds a list of FileSystemItem objects to process. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | BuildListForCreate | Handles the special cases in regards to building the list of items to process when creating a FileSystemItem object. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CreateFileMultiThreadItem | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CreateFolderMultiThreadItem | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | CreateSession | Overloaded. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoApplyPropertiesFrom | This method is reserved for internal use and is not intended to be used directly from your code. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoApplyPropertiesTo | Copies the item's properties to another item. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoCopyTo | Copies the file into the destination. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | DoCreate | Overridden. Creates the physical file. This method will always throw a FileSystemNotSupportedException exception since it is not possible to recreate a StreamFile once it has been destroyed. |
![]() | DoCreateWrite | Creates the file and opens it for writing. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | DoDelete | Overridden. Permanently deletes the physical item. |
![]() | DoGetMetadata | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoMoveTo | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | DoOpenRead | Overridden. Opens the file for reading. |
![]() | DoOpenWrite | Overridden. Opens the file for writing. |
![]() | DoRefresh | Overridden. Re-reads the information from the physical item. In the case of a StreamFile object, there is nothing to refresh. |
![]() | DoSetMetadata | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | EnsureDateIsValid | Ensures that the System.DateTime value is valid. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | GetAutomaticReadFileShare | Retrieves a value indicating the default FileShare value to be used when opening read streams for copy/move operations. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | GetAutomaticWriteFileShare | Retrieves a value indicating the default FileShare value to be used when opening write streams for copy/move operations. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | GetStreamBufferSize | Returns the recommended buffer size for a stream copy operation. (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | IsPathRooted | Overridden. Returns a boolean value indicating if the path passed is rooted. |
![]() | IsPublicException | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListCopyTo | Copies each item in the FileSystemEventsSession object's list to each item's destination. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListCopyToCore | Copies the item pair's current FileSystemItem to its target FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListCreate | Creates each item in the FileSystemEventsSession object's list. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListCreateCore | Creates the item pair's current FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListDelete | Deletes each item in the FileSystemEventsSession object's list. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListDeleteCore | Deletes the item pair's current FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListMoveTo | Moves each item in the FileSystemEventsSession object's list to each item's destination. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ListMoveToCore | Moves the item pair's current FileSystemItem to its target FileSystemItem. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | MemberwiseClone | Overloaded. (Inherited from System.MarshalByRefObject) |
![]() | NeedsApplyPropertiesTo | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | OnCreated | Called when a client explicitly calls Create. (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | OnSessionCreated | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | OnSessionCreatedDestination | (Inherited from Xceed.FileSystem.FileSystemItem) |
![]() | ValidateDoCopyToContext | (Inherited from Xceed.FileSystem.AbstractFile) |
![]() | ValidateDoCopyToContextAsDestination | (Inherited from Xceed.FileSystem.AbstractFile) |
| Name | Description | |
|---|---|---|
![]() | Should | Overloaded. A FileSystemItem extension method that implements the FluentAssertions Should() concept for the given instance. |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Standard: netstandard2.0, netstandard2.1
.NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.