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

ApiKeyAuthentication 类

定义

ApiKey 身份验证提供一个名称和一个值,该值可以包含在请求标头或查询参数中。

[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
继承
ApiKeyAuthentication
属性
Newtonsoft.Json.JsonObjectAttribute

构造函数

ApiKeyAuthentication()

初始化 ApiKeyAuthentication 类的新实例。

ApiKeyAuthentication(String, RestAuthLocation, String)

初始化 ApiKeyAuthentication 类的新实例。

属性

InProperty

获取或设置请求中身份验证密钥/值对的位置。 可能的值包括:“Query”、“Header”

Name

获取或设置身份验证密钥/值对的密钥名称。

Value

获取或设置身份验证密钥/值对的值。

方法

Validate()

验证 对象。

适用于