Partager via


IVsStrongNameKeys.ChangePassword(String, String, String) Method

Definition

Changes the password of an existing file.

public:
 int ChangePassword(System::String ^ szPfxFile, System::String ^ szOldPassword, System::String ^ szNewPassword);
public:
 int ChangePassword(Platform::String ^ szPfxFile, Platform::String ^ szOldPassword, Platform::String ^ szNewPassword);
int ChangePassword(std::wstring const & szPfxFile, std::wstring const & szOldPassword, std::wstring const & szNewPassword);
public int ChangePassword (string szPfxFile, string szOldPassword, string szNewPassword);
abstract member ChangePassword : string * string * string -> int
Public Function ChangePassword (szPfxFile As String, szOldPassword As String, szNewPassword As String) As Integer

Parameters

szPfxFile
String

[in] The name of the file whose password is to be changed.

szOldPassword
String

[in] The old password.

szNewPassword
String

[in] The new password.

Returns

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

Applies to