Embedded
|
public class EmbeddedResourceVirtualFile : VirtualFile
The EmbeddedResourceVirtualFile type exposes the following members.
Name | Description | |
---|---|---|
EmbeddedResourceVirtualFile | Initializes a new instance of the EmbeddedResourceVirtualFile class. |
Name | Description | |
---|---|---|
ContainingAssembly | Gets a reference to the assembly containing the virtual file. | |
IsDirectory | Gets a value that indicates that this is a virtual resource that should be treated as a file. (Inherited from VirtualFile) | |
Name | Gets the display name of the virtual resource. (Inherited from VirtualFileBase) | |
ResourcePath | Gets the path to the embedded resource in the containing assembly. | |
VirtualPath | Gets the virtual file path. (Inherited from VirtualFileBase) |
Name | Description | |
---|---|---|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
InitializeLifetimeService | Gives a VirtualFileBase instance an infinite lifetime by preventing a lease from being created. (Inherited from VirtualFileBase) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject) | |
Open |
Returns a read-only stream to the virtual resource.
(Overrides VirtualFileOpen) | |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Name | Description | |
---|---|---|
GetEnumValueOrDefault |
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) | |
GetEnumValueOrDefaultT |
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |
This type is used by the EmbeddedResourcePathProvider to serve embedded resources as virtual files. The properties on the file can be used to retrieve an embedded resource stream from the ContainingAssembly at the appropriate ResourcePath using reflection. As part of the VirtualFile interface, you can do this easily via Open.
For more information on embedded resource virtual filesystem usage, see EmbeddedResourcePathProvider