Sdílet prostřednictvím


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
)
public FileData (
    String relativePath, 
    FileAttributes attributes, 
    DateTime creationTime, 
    DateTime lastAccessTime, 
    DateTime lastWriteTime, 
    long fileSize
)
public function FileData (
    relativePath : String, 
    attributes : FileAttributes, 
    creationTime : DateTime, 
    lastAccessTime : DateTime, 
    lastWriteTime : DateTime, 
    fileSize : long
)

Parameters

  • relativePath
    The path of the file, relative to the root directory.
  • attributes
    The attributes of the file.
  • creationTime
    The time the file was created.
  • lastAccessTime
    The time the file was last accessed.
  • lastWriteTime
    The time the file was last written to.
  • fileSize
    The size of the file, in bytes.

See Also

Reference

FileData Class
FileData Members
Microsoft.Synchronization.Files Namespace