你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ComputeBatchModelFactory.FileProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.