Method | Description | |
---|---|---|
DirectoryExists ( string virtualDir ) : bool |
Gets a value that indicates whether a directory exists in the virtual file system.
|
|
FileExists ( string virtualPath ) : bool |
Gets a value that indicates whether a file exists in the virtual file system. Any virtual path that begins with an @ symbol is assumed to be an embedded resource where the path represents the namespace hierarchy in either slash or dot notation. |
|
GetCacheDependency ( string virtualPath, IEnumerable virtualPathDependencies, System.DateTime utcStart ) : System.Web.Caching.CacheDependency |
Creates a cache dependency based on the specified virtual paths.
|
|
GetDirectory ( string virtualDir ) : System.Web.Hosting.VirtualDirectory |
Gets a virtual directory from the virtual file system.
|
|
GetFile ( string virtualPath ) : System.Web.Hosting.VirtualFile |
Gets a file from the virtual file system.
|
|
Register ( ) : void |
Registers the EmbeddedResourceProvider within a HostingEnvironment. This function will properly register the EmbeddedResourceProvider even when being run from within a pre-compiled web application. |
Method | Description | |
---|---|---|
IsEmbeddedResource ( string virtualPath ) : bool | ||
ParseResourceNameFromVirtualPath ( string virtualPath ) : string |
public DirectoryExists ( string virtualDir ) : bool | ||
virtualDir | string | The path to the virtual directory. |
return | bool |
public FileExists ( string virtualPath ) : bool | ||
virtualPath | string | The path to the virtual file. |
return | bool |
public GetCacheDependency ( string virtualPath, IEnumerable virtualPathDependencies, System.DateTime utcStart ) : System.Web.Caching.CacheDependency | ||
virtualPath | string | The path to the primary virtual resource. |
virtualPathDependencies | IEnumerable | An array of paths to other resources required by the primary virtual resource. |
utcStart | System.DateTime | The UTC time at which the virtual resources were read. |
return | System.Web.Caching.CacheDependency |
public GetDirectory ( string virtualDir ) : System.Web.Hosting.VirtualDirectory | ||
virtualDir | string | The path to the virtual directory. |
return | System.Web.Hosting.VirtualDirectory |
public GetFile ( string virtualPath ) : System.Web.Hosting.VirtualFile | ||
virtualPath | string | The path to the virtual file. |
return | System.Web.Hosting.VirtualFile |