SPWindowsService.UpdateCredentials Method

Updates the credentials for the Windows service when its username or password changes.

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

Syntax

'Declaration
Public Overridable Sub UpdateCredentials ( _
    formerUsername As String _
)
'Usage
Dim instance As SPWindowsService
Dim formerUsername As String

instance.UpdateCredentials(formerUsername)
public virtual void UpdateCredentials(
    string formerUsername
)

Parameters

  • formerUsername
    Type: System.String

    A string that contains the former user name for the service.

Remarks

You can override the UpdateCredentials method in a custom class that derives from the SPWindowsService class.

See Also

Reference

SPWindowsService Class

SPWindowsService Members

Microsoft.SharePoint.Administration Namespace