SPClaimProvider.UserKeyForEntity method
取得entity的使用者索引鍵。
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function UserKeyForEntity ( _
entity As SPClaim _
) As SPClaim
'用途
Dim instance As SPClaimProvider
Dim entity As SPClaim
Dim returnValue As SPClaim
returnValue = instance.UserKeyForEntity(entity)
public SPClaim UserKeyForEntity(
SPClaim entity
)
參數
entity
Type: Microsoft.SharePoint.Administration.Claims.SPClaim用來識別實體單一SPClaim我們所要求的宣告。
傳回值
Type: Microsoft.SharePoint.Administration.Claims.SPClaim
Exceptions
Exception | Condition |
---|---|
NotImplementedException | 如果SupportsEntityInformation為 false。 |
ArgumentNullException | 如果context或entity是 null。 |