CertificateModelFactory.KeyVaultCertificateWithPolicy Method

Definition

Initializes a new instance of the KeyVaultCertificateWithPolicy for mocking purposes.

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

Parameters

properties
CertificateProperties

Sets the Properties property.

keyId
Uri

Sets the KeyId property.

secretId
Uri

Sets the SecretId property.

cer
Byte[]

Sets the Cer property.

policy
CertificatePolicy

Sets the Policy property.

Returns

A new instance of the KeyVaultCertificateWithPolicy for mocking purposes.

Applies to