Método SymmetricKey.Create (SymmetricKeyEncryption, String, String, CreateDispositionType)
Creates a symmetric key on the database with the specified encryption type and method.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Sub Create ( _
keyEncryption As SymmetricKeyEncryption, _
providerAlgorithm As String, _
providerKeyName As String, _
createDispositionType As CreateDispositionType _
)
'Uso
Dim instance As SymmetricKey
Dim keyEncryption As SymmetricKeyEncryption
Dim providerAlgorithm As String
Dim providerKeyName As String
Dim createDispositionType As CreateDispositionType
instance.Create(keyEncryption, providerAlgorithm, _
providerKeyName, createDispositionType)
public void Create(
SymmetricKeyEncryption keyEncryption,
string providerAlgorithm,
string providerKeyName,
CreateDispositionType createDispositionType
)
public:
void Create(
SymmetricKeyEncryption^ keyEncryption,
String^ providerAlgorithm,
String^ providerKeyName,
CreateDispositionType createDispositionType
)
member Create :
keyEncryption:SymmetricKeyEncryption *
providerAlgorithm:string *
providerKeyName:string *
createDispositionType:CreateDispositionType -> unit
public function Create(
keyEncryption : SymmetricKeyEncryption,
providerAlgorithm : String,
providerKeyName : String,
createDispositionType : CreateDispositionType
)
Parâmetros
- keyEncryption
Tipo: Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption
A SymmetricKeyEncryption object value that specifies the encryption type.
- providerAlgorithm
Tipo: System.String
A String value that identifies the name of the Provider Algorithm.
- providerKeyName
Tipo: System.String
A String value that identifies the name of the key as designated by the provider
- createDispositionType
Tipo: Microsoft.SqlServer.Management.Smo.CreateDispositionType
The CreateDispositionType object specifies an existing or a new Extensible Key Management key.