EmbeddedResourceFileInfo 类
定义
表示嵌入在程序集中的文件。Represents a file embedded in an assembly.
public ref class EmbeddedResourceFileInfo : Microsoft::Extensions::FileProviders::IFileInfo
public class EmbeddedResourceFileInfo : Microsoft.Extensions.FileProviders.IFileInfo
type EmbeddedResourceFileInfo = class
interface IFileInfo
Public Class EmbeddedResourceFileInfo
Implements IFileInfo
- 继承
-
EmbeddedResourceFileInfo
- 实现
构造函数
| EmbeddedResourceFileInfo(Assembly, String, String, DateTimeOffset) |
为使用 |
属性
| Exists |
始终为 true。Always true. |
| IsDirectory |
始终为 false。Always false. |
| LastModified |
创建 EmbeddedFileProvider 时的时间 (UTC)。The time, in UTC, when the EmbeddedFileProvider was created. |
| Length |
嵌入的资源的长度(以字节表示)。The length, in bytes, of the embedded resource. |
| Name |
获取嵌入的文件的名称。Gets the name of embedded file. |
| PhysicalPath |
始终为 null。Always null. |
方法
| CreateReadStream() |
以只读流的形式返回文件内容。Returns the file contents as a read-only stream. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |