ShareServiceClient.SetPropertiesAsync 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.
The SetPropertiesAsync(ShareServiceProperties, CancellationToken) operation sets properties for a storage account’s File service endpoint, including properties for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings. You can also use this operation to set the default request version for all incoming requests to the File service that do not have a version specified.
For more information, see Set File Service Properties.
public virtual System.Threading.Tasks.Task<Azure.Response> SetPropertiesAsync (Azure.Storage.Files.Shares.Models.ShareServiceProperties properties, System.Threading.CancellationToken cancellationToken = default);
abstract member SetPropertiesAsync : Azure.Storage.Files.Shares.Models.ShareServiceProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SetPropertiesAsync : Azure.Storage.Files.Shares.Models.ShareServiceProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SetPropertiesAsync (properties As ShareServiceProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- properties
- ShareServiceProperties
The file service properties.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be cancelled.
Returns
A Response if the operation was successful.
Remarks
A RequestFailedException will be thrown if a failure occurs.
Applies to
Azure SDK for .NET