共用方式為


ApiKeyAuthentication Class

Definition

ApiKey authentication gives a name and a value that can be included in either the request header or query parameters.

[Newtonsoft.Json.JsonObject("ApiKey")]
public class ApiKeyAuthentication : Microsoft.Azure.Management.DeploymentManager.Models.RestRequestAuthentication
[<Newtonsoft.Json.JsonObject("ApiKey")>]
type ApiKeyAuthentication = class
    inherit RestRequestAuthentication
Public Class ApiKeyAuthentication
Inherits RestRequestAuthentication
Inheritance
ApiKeyAuthentication
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

ApiKeyAuthentication()

Initializes a new instance of the ApiKeyAuthentication class.

ApiKeyAuthentication(String, RestAuthLocation, String)

Initializes a new instance of the ApiKeyAuthentication class.

Properties

InProperty

Gets or sets the location of the authentication key/value pair in the request. Possible values include: 'Query', 'Header'

Name

Gets or sets the key name of the authentication key/value pair.

Value

Gets or sets the value of the authentication key/value pair.

Methods

Validate()

Validate the object.

Applies to