Expand Minimize
This topic has not yet been rated - Rate this topic

SPUtility.ChangeAccountPassword method

Changes an account password for the specified SharePoint site.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static void ChangeAccountPassword(
	SPWeb web,
	string loginName,
	string oldPassword,
	string newPassword
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb
An Microsoft.SharePoint.SPWeb object that represents the site.
loginName
Type: System.String
A string that contains the user name of the user.
oldPassword
Type: System.String
A string that contains the old password.
newPassword
Type: System.String
A string that contains the new password.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.