Udostępnij przez


AsymmetricKey.Create Method (String, String, CreateDispositionType, AsymmetricKeySourceType)

Creates an asymmetric key on the instance of SQL Server by loading the specified asymmetric key and by using the specified password.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
Public Sub Create ( _
    providerAlgorithm As String, _
    providerKeyName As String, _
    createDispositionType As CreateDispositionType, _
    sourceType As AsymmetricKeySourceType _
)
public void Create (
    string providerAlgorithm,
    string providerKeyName,
    CreateDispositionType createDispositionType,
    AsymmetricKeySourceType sourceType
)
public:
void Create (
    String^ providerAlgorithm, 
    String^ providerKeyName, 
    CreateDispositionType createDispositionType, 
    AsymmetricKeySourceType sourceType
)
public void Create (
    String providerAlgorithm, 
    String providerKeyName, 
    CreateDispositionType createDispositionType, 
    AsymmetricKeySourceType sourceType
)
public function Create (
    providerAlgorithm : String, 
    providerKeyName : String, 
    createDispositionType : CreateDispositionType, 
    sourceType : AsymmetricKeySourceType
)

Parameters

  • providerAlgorithm
    A String that identifies the name of the Provider Algorithm
  • providerKeyName
    A String that identifies the name of the key as designated by the provider
  • createDispositionType
    A CreateDispositionType is an object used to specify an existing or a new Extensible Key Management key.
  • sourceType
    The AsymmetricKeySourceType enumeration contains values that specify the source of the certificate to be loaded.

Example

Calling Methods

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.