ProjectedFileSystemEntry Class
Represents a file or directory entry in a virtual file system.
public sealed class ProjectedFileSystemEntryProperties
| Name | Description |
|---|---|
| IsDirectory | Gets a value indicating whether this entry represents a directory. |
| Length | Gets the size of the file in bytes. Always 0 for directories. |
| Name | Gets the name of the file or directory. |
IsDirectory
ProjectedFileSystemEntry.csMethods
| Name | Description |
|---|---|
| Directory(string) | Creates a directory entry. |
| File(string, int) | Creates a file entry. |
Directory(string)
ProjectedFileSystemEntry.csCreates a directory entry.
public static ProjectedFileSystemEntry Directory(string name)Parameters
namestring- The name of the directory.
Returns
ProjectedFileSystemEntry A ProjectedFileSystemEntry representing a directory.
File(string, int)
ProjectedFileSystemEntry.csCreates a file entry.
public static ProjectedFileSystemEntry File(string name, int length)