MetricsAdvisorKeyCredential.Update(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET