共用方式為


SymmetricKey.Create 方法

包含保護的成員
包含繼承的成員

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

此成員已超載。如需此成員完整的詳細資訊 (包括語法、使用狀況及範例),按一下多載清單中的名稱。

多載 清單

  名稱 說明
公用方法 Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm) Creates a symmetric key on the database with the specified encryption type and method.
公用方法 Create(array<SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm) Creates a symmetric key on the database with the specified encryption type and method.
公用方法 Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, SecureString) Creates a symmetric key on the database with the specified encryption type and method.
公用方法 Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, String) Creates a symmetric key on the database with the specified encryption type and method.
公用方法 Create(array<SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, SecureString) Creates a symmetric key on the database with the specified encryption type and method.
公用方法 Create(array<SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, String) Creates a symmetric key on the database with the specified encryption type and method.
公用方法 Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, SecureString, String) Creates a symmetric key on the database with the specified encryption type and method.
公用方法 Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, String, String) Creates a symmetric key on the database with the specified encryption type and method.
公用方法 Create(SymmetricKeyEncryption, String, String, CreateDispositionType) Creates a symmetric key on the database with the specified encryption type and method.
公用方法 Create(array<SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, SecureString, String) Creates a symmetric key on the database with the specified encryption type and method.
公用方法 Create(array<SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, String, String) Creates a symmetric key on the database with the specified encryption type and method.

上層

範例

使用加密

請參閱

參考

SymmetricKey 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

加密階層

CREATE SYMMETRIC KEY (Transact-SQL)