共用方式為


Create 方法 (SymmetricKeyEncryption, String, String, CreateDispositionType)

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

語法

'宣告
Public Sub Create ( _
    keyEncryption As SymmetricKeyEncryption, _
    providerAlgorithm As String, _
    providerKeyName As String, _
    createDispositionType As CreateDispositionType _
)
'用途
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
)

參數