DirectoryEntryInfo Class

Definition

Contains the properties of a directory entry (a file or a directory). This is the base class for both FileInfo and DirectoryInfo.

public ref class DirectoryEntryInfo abstract
[MessagePack.Union(1, typeof(Microsoft.VisualStudio.RpcContracts.FileSystem.DirectoryInfo))]
[MessagePack.Union(2, typeof(Microsoft.VisualStudio.RpcContracts.FileSystem.FileInfo))]
[Microsoft.VisualStudio.RpcContracts.JsonConverters.TypeDiscriminator(typeof(Microsoft.VisualStudio.RpcContracts.FileSystem.DirectoryInfo), "directory")]
[Microsoft.VisualStudio.RpcContracts.JsonConverters.TypeDiscriminator(typeof(Microsoft.VisualStudio.RpcContracts.FileSystem.FileInfo), "file")]
[Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.RpcContracts.JsonConverters.DiscriminatedTypeJsonConverter<Microsoft.VisualStudio.RpcContracts.FileSystem.DirectoryEntryInfo>), new System.Object[] { Mono.Cecil.CustomAttributeArgument, Mono.Cecil.CustomAttributeArgument })]
[System.Runtime.Serialization.DataContract]
public abstract class DirectoryEntryInfo
[<MessagePack.Union(1, typeof(Microsoft.VisualStudio.RpcContracts.FileSystem.DirectoryInfo))>]
[<MessagePack.Union(2, typeof(Microsoft.VisualStudio.RpcContracts.FileSystem.FileInfo))>]
[<Microsoft.VisualStudio.RpcContracts.JsonConverters.TypeDiscriminator(typeof(Microsoft.VisualStudio.RpcContracts.FileSystem.DirectoryInfo), "directory")>]
[<Microsoft.VisualStudio.RpcContracts.JsonConverters.TypeDiscriminator(typeof(Microsoft.VisualStudio.RpcContracts.FileSystem.FileInfo), "file")>]
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.RpcContracts.JsonConverters.DiscriminatedTypeJsonConverter<Microsoft.VisualStudio.RpcContracts.FileSystem.DirectoryEntryInfo>), new System.Object[] { Mono.Cecil.CustomAttributeArgument, Mono.Cecil.CustomAttributeArgument })>]
[<System.Runtime.Serialization.DataContract>]
type DirectoryEntryInfo = class
Public MustInherit Class DirectoryEntryInfo
Inheritance
DirectoryEntryInfo
Derived
Attributes
MessagePack.UnionAttribute TypeDiscriminatorAttribute Newtonsoft.Json.JsonConverterAttribute DataContractAttribute

Constructors

DirectoryEntryInfo(Uri, FileAttributes, DateTime, DateTime)

Initializes a new instance of the DirectoryEntryInfo class.

Properties

Attributes

Gets the attributes of the directory entry.

CreationTime

Gets the creation time for the directory entry (UTC).

LastWriteTime

Gets the time when the directory entry was last written to (UTC).

Uri

Gets the URI for the directory entry.

Applies to