共用方式為


SecretItem Constructors

Definition

Overloads

SecretItem()

Initializes a new instance of the SecretItem class.

SecretItem(String, SecretAttributes, IDictionary<String,String>, String, Nullable<Boolean>)

Initializes a new instance of the SecretItem class.

SecretItem()

Source:
SecretItem.cs

Initializes a new instance of the SecretItem class.

public SecretItem ();
Public Sub New ()

Applies to

SecretItem(String, SecretAttributes, IDictionary<String,String>, String, Nullable<Boolean>)

Source:
SecretItem.cs

Initializes a new instance of the SecretItem class.

public SecretItem (string id = default, Microsoft.Azure.KeyVault.Models.SecretAttributes attributes = default, System.Collections.Generic.IDictionary<string,string> tags = default, string contentType = default, bool? managed = default);
new Microsoft.Azure.KeyVault.Models.SecretItem : string * Microsoft.Azure.KeyVault.Models.SecretAttributes * System.Collections.Generic.IDictionary<string, string> * string * Nullable<bool> -> Microsoft.Azure.KeyVault.Models.SecretItem
Public Sub New (Optional id As String = Nothing, Optional attributes As SecretAttributes = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional contentType As String = Nothing, Optional managed As Nullable(Of Boolean) = Nothing)

Parameters

id
String

Secret identifier.

attributes
SecretAttributes

The secret management attributes.

tags
IDictionary<String,String>

Application specific metadata in the form of key-value pairs.

contentType
String

Type of the secret value such as a password.

managed
Nullable<Boolean>

True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true.

Applies to