Поделиться через


Метод AsymmetricKey.Create (String, AsymmetricKeySourceType, String)

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

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Sub Create ( _
    keySource As String, _
    sourceType As AsymmetricKeySourceType, _
    password As String _
)
'Применение
Dim instance As AsymmetricKey 
Dim keySource As String 
Dim sourceType As AsymmetricKeySourceType 
Dim password As String

instance.Create(keySource, sourceType, _
    password)
public void Create(
    string keySource,
    AsymmetricKeySourceType sourceType,
    string password
)
public:
void Create(
    String^ keySource, 
    AsymmetricKeySourceType sourceType, 
    String^ password
)
member Create : 
        keySource:string * 
        sourceType:AsymmetricKeySourceType * 
        password:string -> unit
public function Create(
    keySource : String, 
    sourceType : AsymmetricKeySourceType, 
    password : String
)

Параметры

  • keySource
    Тип: System.String
    A String value that specifies the source from which to load the asymmetric key.
  • password
    Тип: System.String
    A String value that specifies the password with which the key is encrypted.

Примеры

Вызов методов

См. также

Справочник

AsymmetricKey Класс

Перегрузка Create

Пространство имен Microsoft.SqlServer.Management.Smo

Другие ресурсы

CREATE ASYMMETRIC KEY (Transact-SQL)