IVsStrongNameKeys.CreateNewKeyWithName(String, String, String) 方法

定义

为指定的名称创建一个新密钥,该密钥用于签名、导出到文件并创建新的密钥容器。

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

参数

szFile
String

中要存储加密密钥的文件。

szPassword
String

中正在生成的密钥的密码。

szSubjectName
String

中证书名称中的 "CN =" 后的名称。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

适用于