IVsStrongNameKeys.CreateNewKey(String, String) 方法

定义

创建要用于签名、导出到文件和创建新密钥容器的新密钥。

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

参数

szFileLocation
String

中用于保存密钥文件的位置。

pbstrFilename
String

中要在其中存储密钥的文件的名称。

返回

Int32

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

适用于