Sdílet prostřednictvím


FilesModelFactory.ShareFileItem Method

Definition

Creates a new StorageFileItem instance for mocking.

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

Parameters

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

Returns

Applies to