Partager via


IVsStrongNameKeys.CreateNewKey(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 CreateNewKey(System::String ^ szFileLocation, [Runtime::InteropServices::Out] System::String ^ % pbstrFilename);
int CreateNewKey(std::wstring const & szFileLocation, [Runtime::InteropServices::Out] std::wstring const & & pbstrFilename);
public int CreateNewKey (string szFileLocation, out string pbstrFilename);
abstract member CreateNewKey : string * string -> int
Public Function CreateNewKey (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.

Applies to