共用方式為


Create 方法 (SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, String)

Creates a symmetric key on the database with the specified encryption type and method.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub Create ( _
    keyEncryptions As SymmetricKeyEncryption(), _
    keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm, _
    passPhrase As String _
)
'用途
Dim instance As SymmetricKey
Dim keyEncryptions As SymmetricKeyEncryption()
Dim keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm
Dim passPhrase As String

instance.Create(keyEncryptions, keyEncryptionAlgorithm, _
    passPhrase)
public void Create(
    SymmetricKeyEncryption[] keyEncryptions,
    SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm,
    string passPhrase
)
public:
void Create(
    array<SymmetricKeyEncryption^>^ keyEncryptions, 
    SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm, 
    String^ passPhrase
)
member Create : 
        keyEncryptions:SymmetricKeyEncryption[] * 
        keyEncryptionAlgorithm:SymmetricKeyEncryptionAlgorithm * 
        passPhrase:string -> unit 
public function Create(
    keyEncryptions : SymmetricKeyEncryption[], 
    keyEncryptionAlgorithm : SymmetricKeyEncryptionAlgorithm, 
    passPhrase : String
)

參數

範例

使用加密