共用方式為


SPClaimProvider.GetClaimsForEntity method (Uri, SPClaim)

會取得對當做引數為實體的宣告。

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

Syntax

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

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

參數

  • context
    Type: System.Uri

    為 URI 內容。這必須是格式正確的 URI。

傳回值

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

Exceptions

Exception Condition
ArgumentNullException

擲回context或時entitya null reference (Nothing in Visual Basic)。

NotImplementedException

SupportsEntityInformation時false擲回。

請參閱

參照

SPClaimProvider class

SPClaimProvider members

GetClaimsForEntity overload

Microsoft.SharePoint.Administration.Claims namespace