KeyVaultSettingsClient.GetSetting(String, CancellationToken) Method

Definition

Gets the specified account setting.

public virtual Azure.Response<Azure.Security.KeyVault.Administration.KeyVaultSetting> GetSetting (string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSetting : string * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Administration.KeyVaultSetting>
override this.GetSetting : string * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Administration.KeyVaultSetting>
Public Overridable Function GetSetting (name As String, Optional cancellationToken As CancellationToken = Nothing) As 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