共用方式為


SPActiveDirectoryClaimProvider Class

An SPClaimProvider that exposes Active Directory objects. The types supported are User, DistributionList, and SecurityGroup–based claims.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.Claims.SPClaimProvider
    Microsoft.SharePoint.Administration.Claims.SPActiveDirectoryClaimProvider

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPActiveDirectoryClaimProvider _
    Inherits SPClaimProvider
'Usage
Dim instance As SPActiveDirectoryClaimProvider
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPActiveDirectoryClaimProvider : SPClaimProvider

Remarks

User based claims use the System.IdentityModel.Claims.ClaimTypes.Name claim type, the user NTLogin name as the claim value, and the Microsoft.IdentityModel.Claims.ClaimValueTypes.String claim value type. This is done to keep in sync with the claim types, values, and value types generated during a NTLM-based claims login.

DistributionList and SecurityGroup–based claims use the Microsoft.IdentityModel.Claims.ClaimTypes.GroupSid claim type, use the groups sid as the claim value, and the Microsoft.IdentityModel.Claims.ClaimValueTypes.String claim value type. This is done to keep in sync with the claim types, values, and value types generated during a NTLM-based claims login.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPActiveDirectoryClaimProvider Members

Microsoft.SharePoint.Administration.Claims Namespace