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

CertificateModelFactory.KeyVaultCertificateWithPolicy 方法

定义

初始化 的新实例 KeyVaultCertificateWithPolicy 以进行模拟。

public static Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy KeyVaultCertificateWithPolicy (Azure.Security.KeyVault.Certificates.CertificateProperties properties, Uri keyId = default, Uri secretId = default, byte[] cer = default, Azure.Security.KeyVault.Certificates.CertificatePolicy policy = default);
static member KeyVaultCertificateWithPolicy : Azure.Security.KeyVault.Certificates.CertificateProperties * Uri * Uri * byte[] * Azure.Security.KeyVault.Certificates.CertificatePolicy -> Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy
Public Shared Function KeyVaultCertificateWithPolicy (properties As CertificateProperties, Optional keyId As Uri = Nothing, Optional secretId As Uri = Nothing, Optional cer As Byte() = Nothing, Optional policy As CertificatePolicy = Nothing) As KeyVaultCertificateWithPolicy

参数

properties
CertificateProperties

设置 Properties 属性。

keyId
Uri

设置 KeyId 属性。

secretId
Uri

设置 SecretId 属性。

cer
Byte[]

设置 Cer 属性。

policy
CertificatePolicy

设置 Policy 属性。

返回

用于模拟目的的 的新实例 KeyVaultCertificateWithPolicy

适用于