Share via


FileServiceProperties Constructors

Definition

Overloads

FileServiceProperties()

Initializes a new instance of the FileServiceProperties class.

FileServiceProperties(String, String, String, CorsRules, DeleteRetentionPolicy, ProtocolSettings, Sku)

Initializes a new instance of the FileServiceProperties class.

FileServiceProperties()

Initializes a new instance of the FileServiceProperties class.

public FileServiceProperties ();
Public Sub New ()

Applies to

FileServiceProperties(String, String, String, CorsRules, DeleteRetentionPolicy, ProtocolSettings, Sku)

Initializes a new instance of the FileServiceProperties class.

public FileServiceProperties (string id = default, string name = default, string type = default, Microsoft.Azure.Management.Storage.Models.CorsRules cors = default, Microsoft.Azure.Management.Storage.Models.DeleteRetentionPolicy shareDeleteRetentionPolicy = default, Microsoft.Azure.Management.Storage.Models.ProtocolSettings protocolSettings = default, Microsoft.Azure.Management.Storage.Models.Sku sku = default);
new Microsoft.Azure.Management.Storage.Models.FileServiceProperties : string * string * string * Microsoft.Azure.Management.Storage.Models.CorsRules * Microsoft.Azure.Management.Storage.Models.DeleteRetentionPolicy * Microsoft.Azure.Management.Storage.Models.ProtocolSettings * Microsoft.Azure.Management.Storage.Models.Sku -> Microsoft.Azure.Management.Storage.Models.FileServiceProperties
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional cors As CorsRules = Nothing, Optional shareDeleteRetentionPolicy As DeleteRetentionPolicy = Nothing, Optional protocolSettings As ProtocolSettings = Nothing, Optional sku As Sku = Nothing)

Parameters

id
String

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

cors
CorsRules

Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service.

shareDeleteRetentionPolicy
DeleteRetentionPolicy

The file service properties for share soft delete.

protocolSettings
ProtocolSettings

Protocol settings for file service

sku
Sku

Sku name and tier.

Applies to