Share via


FileData Constructor

Initializes a new instance of the FileData class.

Namespace:  Microsoft.Synchronization.Files
Assembly:  Microsoft.Synchronization.Files (in Microsoft.Synchronization.Files.dll)

Syntax

'Declaration
Public Sub New ( _
    relativePath As String, _
    attributes As FileAttributes, _
    creationTime As DateTime, _
    lastAccessTime As DateTime, _
    lastWriteTime As DateTime, _
    fileSize As Long _
)
'Usage
Dim relativePath As String
Dim attributes As FileAttributes
Dim creationTime As DateTime
Dim lastAccessTime As DateTime
Dim lastWriteTime As DateTime
Dim fileSize As Long

Dim instance As New FileData(relativePath, _
    attributes, creationTime, lastAccessTime, _
    lastWriteTime, fileSize)
public FileData(
    string relativePath,
    FileAttributes attributes,
    DateTime creationTime,
    DateTime lastAccessTime,
    DateTime lastWriteTime,
    long fileSize
)
public:
FileData(
    String^ relativePath, 
    FileAttributes attributes, 
    DateTime creationTime, 
    DateTime lastAccessTime, 
    DateTime lastWriteTime, 
    long long fileSize
)
new : 
        relativePath:string * 
        attributes:FileAttributes * 
        creationTime:DateTime * 
        lastAccessTime:DateTime * 
        lastWriteTime:DateTime * 
        fileSize:int64 -> FileData
public function FileData(
    relativePath : String, 
    attributes : FileAttributes, 
    creationTime : DateTime, 
    lastAccessTime : DateTime, 
    lastWriteTime : DateTime, 
    fileSize : long
)

Parameters

  • relativePath
    Type: System.String
    The path of the file, relative to the root directory.
  • lastAccessTime
    Type: System.DateTime
    The time the file was last accessed.
  • lastWriteTime
    Type: System.DateTime
    The time the file was last written to.
  • fileSize
    Type: System.Int64
    The size of the file, in bytes.

See Also

Reference

FileData Class

Microsoft.Synchronization.Files Namespace