Table of Contents

Class ShareCreateOptions

Namespace
Azure.Storage.Files.Shares.Models
Assembly
Azure.Storage.Files.Shares.dll

Optional parameters for creating a Share.

public class ShareCreateOptions
Inheritance
ShareCreateOptions
Inherited Members

Constructors

ShareCreateOptions()

public ShareCreateOptions()

Properties

AccessTier

Optional. Specifies the access tier of the share.

public ShareAccessTier? AccessTier { get; set; }

Property Value

ShareAccessTier?

EnableSnapshotVirtualDirectoryAccess

Optional. Supported in version 2023-08-03 and above. Only applicable for premium file storage accounts. Specifies whether the snapshot virtual directory should be accessible at the root of share mount point when NFS is enabled. If not specified, the default is true.

public bool? EnableSnapshotVirtualDirectoryAccess { get; set; }

Property Value

bool?

Metadata

Optional custom metadata to set for this share.

public IDictionary<string, string> Metadata { get; set; }

Property Value

IDictionary<string, string>

Protocols

The protocols to enable for the share.

public ShareProtocols? Protocols { get; set; }

Property Value

ShareProtocols?

QuotaInGB

Optional. Maximum size of the share in gigabytes. If unspecified, use the service's default value.

public int? QuotaInGB { get; set; }

Property Value

int?

RootSquash

The root squash to set for the share. Only valid for NFS shares.

public ShareRootSquash? RootSquash { get; set; }

Property Value

ShareRootSquash?