共用方式為


SPUtility.ChangeAccountPassword method

會變更指定的 SharePoint 網站的帳戶密碼。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Shared Sub ChangeAccountPassword ( _
    web As SPWeb, _
    loginName As String, _
    oldPassword As String, _
    newPassword As String _
)
'用途
Dim web As SPWeb
Dim loginName As String
Dim oldPassword As String
Dim newPassword As StringSPUtility.ChangeAccountPassword(web, _
    loginName, oldPassword, newPassword)
public static void ChangeAccountPassword(
    SPWeb web,
    string loginName,
    string oldPassword,
    string newPassword
)

參數

  • loginName
    Type: System.String

    包含使用者的使用者名稱的字串。

  • oldPassword
    Type: System.String

    字串,其中含有舊密碼。

  • newPassword
    Type: System.String

    字串,其中含有新密碼。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace