共用方式為


AsymmetricKey.Create 方法 (String, AsymmetricKeySourceType)

Creates an asymmetric key on the instance of SQL Server by loading the asymmetric key from the specified source.

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

語法

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

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

參數

  • keySource
    型別:System.String
    A String value that specifies the source from which to load the asymmetric key.

範例

呼叫方法

請參閱

參考

AsymmetricKey 類別

Create 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

CREATE ASYMMETRIC KEY (Transact-SQL)