다음을 통해 공유


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)

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