Compartilhar via


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 ( _
    claimsIdentity As IClaimsIdentity _
) As String
'Usage
Dim claimsIdentity As IClaimsIdentity
Dim returnValue As String

returnValue = claimsIdentity.GetDisplayName()
public static string GetDisplayName(
    this IClaimsIdentity claimsIdentity
)

Parameters

  • claimsIdentity
    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.14) or https://msdn.microsoft.com/en-us/library/bb383977(v=office.14).

See Also

Reference

SPClaimExtensionMethods Class

SPClaimExtensionMethods Members

Microsoft.SharePoint.Administration.Claims Namespace