共用方式為


AsymmetricKey.Create Method

Definition

Overloads

Create(AsymmetricKeyEncryptionAlgorithm)

Creates an asymmetric key based on supplied encryption algorithm.

Create(AsymmetricKeyEncryptionAlgorithm, String)

Creates an asymmetric key based on supplied encryption algorithm. The password specifies the password the key is encrypted with.

Create(String, AsymmetricKeySourceType)

Loads the key from the source specified.

Create(String, AsymmetricKeySourceType, String)

Loads the key from the source specified. The password specifies the password the key is encrypted with.

Create(String, String, CreateDispositionType, AsymmetricKeySourceType)

Create(AsymmetricKeyEncryptionAlgorithm)

Creates an asymmetric key based on supplied encryption algorithm.

public void Create (Microsoft.SqlServer.Management.Smo.AsymmetricKeyEncryptionAlgorithm encryptionAlgorithm);
member this.Create : Microsoft.SqlServer.Management.Smo.AsymmetricKeyEncryptionAlgorithm -> unit
Public Sub Create (encryptionAlgorithm As AsymmetricKeyEncryptionAlgorithm)

Parameters

encryptionAlgorithm
AsymmetricKeyEncryptionAlgorithm

Applies to

Create(AsymmetricKeyEncryptionAlgorithm, String)

Creates an asymmetric key based on supplied encryption algorithm. The password specifies the password the key is encrypted with.

public void Create (Microsoft.SqlServer.Management.Smo.AsymmetricKeyEncryptionAlgorithm encryptionAlgorithm, string password);
member this.Create : Microsoft.SqlServer.Management.Smo.AsymmetricKeyEncryptionAlgorithm * string -> unit
Public Sub Create (encryptionAlgorithm As AsymmetricKeyEncryptionAlgorithm, password As String)

Parameters

encryptionAlgorithm
AsymmetricKeyEncryptionAlgorithm
password
String

Applies to

Create(String, AsymmetricKeySourceType)

Loads the key from the source specified.

public void Create (string keySource, Microsoft.SqlServer.Management.Smo.AsymmetricKeySourceType sourceType);
member this.Create : string * Microsoft.SqlServer.Management.Smo.AsymmetricKeySourceType -> unit
Public Sub Create (keySource As String, sourceType As AsymmetricKeySourceType)

Parameters

keySource
String

Applies to

Create(String, AsymmetricKeySourceType, String)

Loads the key from the source specified. The password specifies the password the key is encrypted with.

public void Create (string keySource, Microsoft.SqlServer.Management.Smo.AsymmetricKeySourceType sourceType, string password);
member this.Create : string * Microsoft.SqlServer.Management.Smo.AsymmetricKeySourceType * string -> unit
Public Sub Create (keySource As String, sourceType As AsymmetricKeySourceType, password As String)

Parameters

keySource
String
password
String

Applies to

Create(String, String, CreateDispositionType, AsymmetricKeySourceType)

public void Create (string providerAlgorithm, string providerKeyName, Microsoft.SqlServer.Management.Smo.CreateDispositionType createDispositionType, Microsoft.SqlServer.Management.Smo.AsymmetricKeySourceType sourceType);
member this.Create : string * string * Microsoft.SqlServer.Management.Smo.CreateDispositionType * Microsoft.SqlServer.Management.Smo.AsymmetricKeySourceType -> unit
Public Sub Create (providerAlgorithm As String, providerKeyName As String, createDispositionType As CreateDispositionType, sourceType As AsymmetricKeySourceType)

Parameters

providerAlgorithm
String
providerKeyName
String
createDispositionType
CreateDispositionType

Applies to