Share via


ComputeBatchModelFactory.FileProperties Method

Definition

Initializes a new instance of FileProperties.

public static Azure.Compute.Batch.FileProperties FileProperties (DateTimeOffset? creationTime = default, DateTimeOffset lastModified = default, long contentLength = 0, string contentType = default, string fileMode = default);
static member FileProperties : Nullable<DateTimeOffset> * DateTimeOffset * int64 * string * string -> Azure.Compute.Batch.FileProperties
Public Shared Function FileProperties (Optional creationTime As Nullable(Of DateTimeOffset) = Nothing, Optional lastModified As DateTimeOffset = Nothing, Optional contentLength As Long = 0, Optional contentType As String = Nothing, Optional fileMode As String = Nothing) As FileProperties

Parameters

creationTime
Nullable<DateTimeOffset>

The file creation time. The creation time is not returned for files on Linux Compute Nodes.

lastModified
DateTimeOffset

The time at which the file was last modified.

contentLength
Int64

The length of the file.

contentType
String

The content type of the file.

fileMode
String

The file mode attribute in octal format. The file mode is returned only for files on Linux Compute Nodes.

Returns

A new FileProperties instance for mocking.

Applies to