Partilhar via


SPManagedAccount.ChangePassword Method

Changes the account password to a new value, and propagates it to all front-end server (also known as the "Web front end").

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub ChangePassword ( _
    newPassword As SecureString, _
    eventFlags As SPManagedAccount.EventProcessingOptions _
)
'Usage
Dim instance As SPManagedAccount
Dim newPassword As SecureString
Dim eventFlags As SPManagedAccount.EventProcessingOptions

instance.ChangePassword(newPassword, _
    eventFlags)
public void ChangePassword(
    SecureString newPassword,
    SPManagedAccount.EventProcessingOptions eventFlags
)

Parameters

See Also

Reference

SPManagedAccount Class

SPManagedAccount Members

Microsoft.SharePoint.Administration Namespace