共用方式為


SPIdentityProviders.Format method

會從指定之簽發者類型及發行者識別碼建立發行者。

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

Syntax

'宣告
Public Shared Function Format ( _
    type As String, _
    identifier As String _
) As String
'用途
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
)

參數

傳回值

Type: System.String
發行者。

Exceptions

Exception Condition
ArgumentException

type null 或空字串, identifier null 或空字串時type不是Forms()Trusted()Windows()

備註

如果type等於Windows(),這個方法會傳回Windows()。如果typeForms()Trusted(),此方法,則會傳回串連的類型及識別碼,以分隔 ': ' 字元。

請參閱

參照

SPIdentityProviders class

SPIdentityProviders members

Microsoft.SharePoint.Administration.Claims namespace