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.StringA 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.