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會指定作業的內容。
entity
Type: Microsoft.SharePoint.Administration.Claims.SPClaim用來識別實體單一SPClaim我們所要求的宣告。
claimProviderContext
Type: Microsoft.SharePoint.Administration.Claims.SPClaimProviderContext增強不僅,提供的宣告提供者的額外資訊。
傳回值
Type: []
一組SPClaim物件。**[!:SPClaim.Type]屬性值必須位於ClaimTypes()的結果。ValueType屬性值必須位於[!:ClaimValueType]**的結果。
Exceptions
Exception | Condition |
---|---|
NotImplementedException | 如果SupportsEntityInformation為 false。 |
ArgumentNullException | 如果context或entity是 null。 |