Share via


SPIdentityProviders.Format method

Creates an issuer from the specified issuer type and issuer identifier.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function Format ( _
    type As String, _
    identifier As String _
) As String
'Usage
Dim type As String
Dim identifier As String
Dim returnValue As String

returnValue = SPIdentityProviders.Format(type, identifier)
public static string Format(
    string type,
    string identifier
)

Parameters

Return value

Type: System.String
The issuer.

Exceptions

Exception Condition
ArgumentException

type is null or an empty string, identifier is null or an empty string when type is notForms(), Trusted(), or Windows().

Remarks

If type is equal to Windows(), this method returns Windows(). If type is Forms(), Trusted(), this method, it returns the concatenated type and identifier, separated by a ‘:’ character.

See also

Reference

SPIdentityProviders class

SPIdentityProviders members

Microsoft.SharePoint.Administration.Claims namespace