你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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