Partilhar via


SPOriginalIssuers.Format Method (SPOriginalIssuerType, String)

Formats a valid issuer from an issuer type and an issuer identifier.

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

Syntax

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

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

Parameters

  • identifier
    Type: System.String

    A string that contains the issuer identifier to format into a valid issuer string.

Return Value

Type: System.String
A string that contains a valid original issuer.

Exceptions

Exception Condition
ArgumentNullException

Thrown if the identifier is null when the type requires an identifier.

ArgumentException

Thrown if the identifier is String.Empty when the type requires an identifier. Also throws an ArgumentException if the identifier causes IsValidIssuerIdentifier to return false when the type requires an identifier.

See Also

Reference

SPOriginalIssuers Class

SPOriginalIssuers Members

Format Overload

Microsoft.SharePoint.Administration.Claims Namespace