FileData Class
Represents information about a file or directory. This is a loose wrapper of the WIN32_FIND_DATA structure that contains additional path information.
Inheritance Hierarchy
System.Object
Microsoft.Synchronization.Files.FileData
Namespace: Microsoft.Synchronization.Files
Assembly: Microsoft.Synchronization.Files (in Microsoft.Synchronization.Files.dll)
Syntax
'Declaration
Public Class FileData
'Usage
Dim instance As FileData
public class FileData
public ref class FileData
type FileData = class end
public class FileData
The FileData type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FileData | Initializes a new instance of the FileData class. |
Top
Properties
Name | Description | |
---|---|---|
Attributes | Gets the file attributes. | |
CreationTime | Gets the date and time when the file was created. | |
IsDirectory | Gets a value that indicates whether this object represents a directory. | |
LastAccessTime | Gets the date and time when the file was last accessed. | |
LastWriteTime | Gets the date and time when the file was last written to. | |
Name | Gets the name of the file, with no path information. | |
RelativePath | Gets the path of file. The path is relative to the root directory. | |
Size | Gets the size of the file, in bytes. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Remarks
This class is used by the ApplyingChange event to communicate information about the file or folder that is about to be changed.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.