Click or drag to resize

EmbeddedResourceVirtualFile Class

Represents a file object in embedded resource space.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.Web.HostingVirtualFileBase
      System.Web.HostingVirtualFile
        GSF.Web.HostingEmbeddedResourceVirtualFile

Namespace: GSF.Web.Hosting
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public class EmbeddedResourceVirtualFile : VirtualFile
View Source

The EmbeddedResourceVirtualFile type exposes the following members.

Constructors
 NameDescription
Public methodEmbeddedResourceVirtualFile Initializes a new instance of the EmbeddedResourceVirtualFile class.
Top
Properties
 NameDescription
Public propertyContainingAssembly Gets a reference to the assembly containing the virtual file.
Public propertyIsDirectoryGets a value that indicates that this is a virtual resource that should be treated as a file.
(Inherited from VirtualFile)
Public propertyNameGets the display name of the virtual resource.
(Inherited from VirtualFileBase)
Public propertyResourcePath Gets the path to the embedded resource in the containing assembly.
Public propertyVirtualPathGets the virtual file path.
(Inherited from VirtualFileBase)
Top
Methods
 NameDescription
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitializeLifetimeServiceGives a VirtualFileBase instance an infinite lifetime by preventing a lease from being created.
(Inherited from VirtualFileBase)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
Public methodOpen Returns a read-only stream to the virtual resource.
(Overrides VirtualFileOpen)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks

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

See Also