SPManagedAccount.SetPassword method

Sets the password value.

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

Syntax

'Declaration
Public Function SetPassword ( _
    value As SecureString _
) As Boolean
'Usage
Dim instance As SPManagedAccount
Dim value As SecureString
Dim returnValue As Boolean

returnValue = instance.SetPassword(value)
public bool SetPassword(
    SecureString value
)

Parameters

Return value

Type: System.Boolean
true if the password has been successfully changed; otherwise false.

See also

Reference

SPManagedAccount class

SPManagedAccount members

Microsoft.SharePoint.Administration namespace