次の方法で共有


AsymmetricKey.Create メソッド (String, AsymmetricKeySourceType, String)

SQL Server のインスタンスで、指定した非対称キーを読み込み、また指定したパスワードを使用して、非対称キーを作成します。

名前空間:  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
)

パラメーター

  • keySource
    型: System.String
    非対称キーを読み込むソースを示す String 値です。
  • password
    型: System.String
    キーの暗号化に使用するパスワードを示す String 値です。

使用例

メソッドの呼び出し

関連項目

参照

AsymmetricKey クラス

Create オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

CREATE ASYMMETRIC KEY (Transact-SQL)