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


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

Creates an asymmetric key on the instance of SQL Server with the specified encryption algorithm and the specified password.

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

Синтаксис

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

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

Параметры

  • 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)