共用方式為


SPWebApplication.UseClaimsAuthentication Property

Gets or sets a Boolean value that indicates whether claims authentication is enabled.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property UseClaimsAuthentication As Boolean
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As Boolean

value = instance.UseClaimsAuthentication

instance.UseClaimsAuthentication = value
public bool UseClaimsAuthentication { get; set; }

Property Value

Type: System.Boolean
true if claims authentication is enabled; otherwise false.

Remarks

This property affects all zones. Note that a value of true is disallowed for this property on the central administrative Web application.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace