你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FilesModelFactory.ShareFileItem 方法

定义

创建新的 StorageFileItem 实例进行模拟。

public static Azure.Storage.Files.Shares.Models.ShareFileItem ShareFileItem (bool isDirectory = false, string name = default, long? fileSize = default, string id = default, Azure.Storage.Files.Shares.Models.ShareFileItemProperties properties = default, Azure.Storage.Files.Shares.Models.NtfsFileAttributes? fileAttributes = default, string permissionKey = default);
static member ShareFileItem : bool * string * Nullable<int64> * string * Azure.Storage.Files.Shares.Models.ShareFileItemProperties * Nullable<Azure.Storage.Files.Shares.Models.NtfsFileAttributes> * string -> Azure.Storage.Files.Shares.Models.ShareFileItem
Public Shared Function ShareFileItem (Optional isDirectory As Boolean = false, Optional name As String = Nothing, Optional fileSize As Nullable(Of Long) = Nothing, Optional id As String = Nothing, Optional properties As ShareFileItemProperties = Nothing, Optional fileAttributes As Nullable(Of NtfsFileAttributes) = Nothing, Optional permissionKey As String = Nothing) As ShareFileItem

参数

isDirectory
Boolean
name
String
fileSize
Nullable<Int64>
id
String
fileAttributes
Nullable<NtfsFileAttributes>
permissionKey
String

返回

适用于