Share via


IVsStrongNameKeys.ImportKeyFromPFX(String, String) Method

Definition

Imports a PFX-encrypted file to a key container.

public:
 int ImportKeyFromPFX(System::String ^ szFile, [Runtime::InteropServices::Out] System::String ^ % pbstrContainerName);
int ImportKeyFromPFX(std::wstring const & szFile, [Runtime::InteropServices::Out] std::wstring const & & pbstrContainerName);
public int ImportKeyFromPFX (string szFile, out string pbstrContainerName);
abstract member ImportKeyFromPFX : string * string -> int
Public Function ImportKeyFromPFX (szFile As String, ByRef pbstrContainerName As String) As Integer

Parameters

szFile
String

[in] The PFX-encrypted file to import.

pbstrContainerName
String

[out] The key container in which the PFX-encrypted file was imported.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to