Udostępnij za pośrednictwem


ApiKeyCredential(String) Constructor

Definition

Initializes a new instance of the ApiKeyCredential class.

public ApiKeyCredential (string key);
new System.ClientModel.ApiKeyCredential : string -> System.ClientModel.ApiKeyCredential
Public Sub New (key As String)

Parameters

key
String

The API key to used to authenticate with the service.

Exceptions

Thrown when the key is null.

Thrown when the key is empty.

Applies to