Language

CngKey.Import メソッド

定義

キー マテリアルをキー ストレージ プロバイダー (KSP) にインポートして、新しいキーを作成します。

オーバーロード

名前 説明
Import(Byte[], CngKeyBlobFormat, CngProvider)

指定した形式を使用して、指定したキー マテリアルを指定したキー ストレージ プロバイダー (KSP) にインポートして、新しいキーを作成します。

Import(Byte[], CngKeyBlobFormat)

指定したキー マテリアルを既定のキー ストレージ プロバイダー (KSP) にインポートし、指定した形式を使用して、新しいキーを作成します。

Import(Byte[], CngKeyBlobFormat, CngProvider)

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

指定した形式を使用して、指定したキー マテリアルを指定したキー ストレージ プロバイダー (KSP) にインポートして、新しいキーを作成します。

public:
 static System::Security::Cryptography::CngKey ^ Import(cli::array <System::Byte> ^ keyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format, System::Security::Cryptography::CngProvider ^ provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
[<System.Security.SecurityCritical>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
Public Shared Function Import (keyBlob As Byte(), format As CngKeyBlobFormat, provider As CngProvider) As CngKey

パラメーター

keyBlob
Byte[]

キー情報を含む配列。

format
CngKeyBlobFormat

keyBlob配列の形式を指定するオブジェクト。

provider
CngProvider

KSP。

返品

新しいキー。

属性

例外

keyBlob、 format、または provider が null。

このシステムでは、暗号化次世代 (CNG) はサポートされていません。

その他すべてのエラー。

注釈

Important

Windows 7および Windows Server 2008 R2 より前の Windows オペレーティング システムでは、一部の CNG キー バイナリ ラージ オブジェクト (BLOB) 形式はサポートされていません。

適用対象

Import(Byte[], CngKeyBlobFormat)

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

指定したキー マテリアルを既定のキー ストレージ プロバイダー (KSP) にインポートし、指定した形式を使用して、新しいキーを作成します。

public:
 static System::Security::Cryptography::CngKey ^ Import(cli::array <System::Byte> ^ keyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
Public Shared Function Import (keyBlob As Byte(), format As CngKeyBlobFormat) As CngKey

パラメーター

keyBlob
Byte[]

キー情報を含む配列。

format
CngKeyBlobFormat

keyBlob配列の形式を指定するオブジェクト。

返品

新しいキー。

属性

例外

keyBlob または format が null。

このシステムでは、暗号化次世代 (CNG) はサポートされていません。

その他すべてのエラー。

注釈

既定の KSP は MicrosoftSoftwareKeyStorageProviderです。

Important

Windows 7および Windows Server 2008 R2 より前の Windows オペレーティング システムでは、一部の CNG キー バイナリ ラージ オブジェクト (BLOB) 形式はサポートされていません。

適用対象