共用方式為


Create 方法 (String, AsymmetricKeySourceType, String)

Creates an asymmetric key on the instance of SQL Server by loading the specified asymmetric key and by using the specified password.

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

語法

'宣告
Public Sub Create ( _
    keySource As String, _
    sourceType As AsymmetricKeySourceType, _
    password As String _
)
'用途
Dim instance As AsymmetricKey
Dim keySource As String
Dim sourceType As AsymmetricKeySourceType
Dim password As String

instance.Create(keySource, sourceType, _
    password)
public void Create(
    string keySource,
    AsymmetricKeySourceType sourceType,
    string password
)
public:
void Create(
    String^ keySource, 
    AsymmetricKeySourceType sourceType, 
    String^ password
)
member Create : 
        keySource:string * 
        sourceType:AsymmetricKeySourceType * 
        password:string -> unit 
public function Create(
    keySource : String, 
    sourceType : AsymmetricKeySourceType, 
    password : String
)

參數

範例

呼叫方法