Partilhar via


IVsStrongNameKeys2.CreateNewKey2(String, String) Method

Definition

Creates a new key to be used for signing, exporting to a file, and creating a new key container.

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

Parameters

szFileLocation
String

[in] The location to save the key file.

pbstrFileName
String

[in] The name of the file in which to store the key.

Returns

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

Remarks

This method provides additional UIs to allow the user to pick from a list of signature algorithms to use. Currently only SHA-1 and SHA-256 are supported in the combo box.

Applies to