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
)
参数
- encryptionAlgorithm
类型:Microsoft.SqlServer.Management.Smo.AsymmetricKeyEncryptionAlgorithm
A AsymmetricKeyEncryptionAlgorithm object value that specifies the encryption algorithm.
- password
类型:System.String
A String value that specifies the password with which the key is encrypted.
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间