SPClaimExtensionMethods.GetDisplayName method
Gets a display-friendly name for the corresponding IClaimsIdentity object.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetDisplayName ( _
self As IClaimsIdentity _
) As String
'Usage
Dim self As IClaimsIdentity
Dim returnValue As String
returnValue = self.GetDisplayName()
public static string GetDisplayName(
this IClaimsIdentity self
)
Parameters
- self
Type: IClaimsIdentity
Return value
Type: System.String
A String that contains a display-friendly name.
Usage note
In Visual Basic and C#, you can call this method as an instance method on any object of type IClaimsIdentity. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=office.15) or https://msdn.microsoft.com/en-us/library/bb383977(v=office.15).