共用方式為


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

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