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 値です。
- sourceType
型: Microsoft.SqlServer.Management.Smo.AsymmetricKeySourceType
非対称キーを読み込むソースの種類を示す AsymmetricKeySourceType オブジェクトの値です。
- password
型: System.String
キーの暗号化に使用するパスワードを示す String 値です。
使用例
関連項目
参照
Microsoft.SqlServer.Management.Smo 名前空間