Udostępnij za pośrednictwem


IVsStrongNameKeys.CreateNewKeyNoUI(String, String) Method

Definition

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

public:
 int CreateNewKeyNoUI(System::String ^ szFile, System::String ^ szPassword);
public:
 int CreateNewKeyNoUI(Platform::String ^ szFile, Platform::String ^ szPassword);
int CreateNewKeyNoUI(std::wstring const & szFile, std::wstring const & szPassword);
public int CreateNewKeyNoUI (string szFile, string szPassword);
abstract member CreateNewKeyNoUI : string * string -> int
Public Function CreateNewKeyNoUI (szFile As String, szPassword As String) As Integer

Parameters

szFile
String

[in] The file in which to store the encryption key.

szPassword
String

[in] The password for the key being generated.

Returns

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

Applies to