共用方式為


SPClaimProvider.GetClaimsForEntity method (Uri, SPClaim, SPClaimProviderContext)

取得entitySPClaim

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

Syntax

'宣告
Public Function GetClaimsForEntity ( _
    context As Uri, _
    entity As SPClaim, _
    claimProviderContext As SPClaimProviderContext _
) As SPClaim()
'用途
Dim instance As SPClaimProvider
Dim context As Uri
Dim entity As SPClaim
Dim claimProviderContext As SPClaimProviderContext
Dim returnValue As SPClaim()

returnValue = instance.GetClaimsForEntity(context, _
    entity, claimProviderContext)
public SPClaim[] GetClaimsForEntity(
    Uri context,
    SPClaim entity,
    SPClaimProviderContext claimProviderContext
)

參數

  • context
    Type: System.Uri

    會指定作業的內容。

傳回值

Type: []
一組SPClaim物件。**[!:SPClaim.Type]屬性值必須位於ClaimTypes()的結果。ValueType屬性值必須位於[!:ClaimValueType]**的結果。

Exceptions

Exception Condition
NotImplementedException

如果SupportsEntityInformation為 false。

ArgumentNullException

如果context或entity是 null。

請參閱

參照

SPClaimProvider class

SPClaimProvider members

GetClaimsForEntity overload

Microsoft.SharePoint.Administration.Claims namespace