Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetAccountName method
Collapse the table of content
Expand the table of content

SPUtility.GetAccountName method

Retrieves an account name, without provider information, given the full username associated with the account.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static string GetAccountName(
	string fullName
)

Parameters

fullName
Type: System.String

The full username associated with the account.

Return value

Type: System.String
A string that provides the account name for the account.

If the provided username is empty or null, this method throws an exception of ArgumentNullException.

Show:
© 2015 Microsoft