Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an asymmetric key on the instance of SQL Server with the specified encryption algorithm and the specified password.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Create ( _
encryptionAlgorithm As AsymmetricKeyEncryptionAlgorithm, _
password As String _
)
'Usage
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
)
Parameters
- encryptionAlgorithm
Type: Microsoft.SqlServer.Management.Smo.AsymmetricKeyEncryptionAlgorithm
A AsymmetricKeyEncryptionAlgorithm object value that specifies the encryption algorithm.
- password
Type: System.String
A String value that specifies the password with which the key is encrypted.
Examples
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace