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
)
參數
web
Type: Microsoft.SharePoint.SPWeb代表網站的Microsoft.SharePoint.SPWeb物件。
loginName
Type: System.String包含使用者的使用者名稱的字串。
oldPassword
Type: System.String字串,其中含有舊密碼。
newPassword
Type: System.String字串,其中含有新密碼。