Share via


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
Public method FileData Initializes a new instance of the FileData class.

Top

Properties

  Name Description
Public property Attributes Gets the file attributes.
Public property CreationTime Gets the date and time when the file was created.
Public property IsDirectory Gets a value that indicates whether this object represents a directory.
Public property LastAccessTime Gets the date and time when the file was last accessed.
Public property LastWriteTime Gets the date and time when the file was last written to.
Public property Name Gets the name of the file, with no path information.
Public property RelativePath Gets the path of file. The path is relative to the root directory.
Public property Size Gets the size of the file, in bytes.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.Synchronization.Files Namespace