다음을 통해 공유


KeyVaultSettingsClient.GetSettingAsync(String, CancellationToken) Method

Definition

Gets the specified account setting.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Administration.KeyVaultSetting>> GetSettingAsync (string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSettingAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Administration.KeyVaultSetting>>
override this.GetSettingAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Administration.KeyVaultSetting>>
Public Overridable Function GetSettingAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of KeyVaultSetting))

Parameters

name
String

The name of the account setting. Must be a valid settings option.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A response containing the specified account setting.

Exceptions

name is an empty string.

name is null.

The server returned an error. See Message for details returned from the server.

Applies to