IVsStrongNameKeys.CreateNewKey(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建要用于签名、导出到文件和创建新密钥容器的新密钥。
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
中要在其中存储密钥的文件的名称。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。