SPManagedAccount.SetPassword Method
Sets the password value.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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
value
Type: System.Security.SecureStringA secure string that contains the password value.
Return Value
Type: System.Boolean
true if the password has been successfully changed; otherwise false.