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
type
Type: Microsoft.SharePoint.Administration.Claims.SPOriginalIssuerTypeThe SPOriginalIssuerType object to format into a valid issuer string.
identifier
Type: System.StringA 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. |