Condividi tramite


MetricsAdvisorKeyCredential.Update(String, String) Method

Definition

Updates the subscription and API keys. This is intended to be used when you've regenerated your keys and want to update long lived clients.

public void Update (string subscriptionKey, string apiKey);
member this.Update : string * string -> unit
Public Sub Update (subscriptionKey As String, apiKey As String)

Parameters

subscriptionKey
String

The subscription key to authenticate the service against.

apiKey
String

The API key to use to authenticate the user with the Metrics Advisor service. Used to differentiate administrators and viewers.

Exceptions

subscriptionKey or apiKey is null.

subscriptionKey or apiKey is empty.

Applies to