Share via


AsymmetricKey.Create Method

Include Protected Members
Include Inherited Members

Creates an asymmetric key based on an asymmetric key encryption algorithm or based on an asymmetric key source type.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Create(AsymmetricKeyEncryptionAlgorithm) Creates an asymmetric key on the instance of SQL Server with the specified encryption algorithm.
Public method Create(String, AsymmetricKeySourceType) Creates an asymmetric key on the instance of SQL Server by loading the asymmetric key from the specified source.
Public method Create(AsymmetricKeyEncryptionAlgorithm, String) Creates an asymmetric key on the instance of SQL Server with the specified encryption algorithm and the specified password.
Public method 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.
Public method Create(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.

Top

See Also

Reference

AsymmetricKey Class

Microsoft.SqlServer.Management.Smo Namespace