共用方式為


SPWindowsAuthenticationProvider.AllowAnonymous property

取得或設定 Boolean 值,指定是否允許匿名存取。

Namespace:  Microsoft.SharePoint.AdministrationOperation
Assembly:  Microsoft.SharePoint.AdministrationOperation (in Microsoft.SharePoint.AdministrationOperation.dll)

Syntax

'宣告
Public Property AllowAnonymous As Boolean
    Get
    Set
'用途
Dim instance As SPWindowsAuthenticationProvider
Dim value As Boolean

value = instance.AllowAnonymous

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

Property value

Type: System.Boolean
true如果允許匿名存取 ;否則為false

請參閱

參照

SPWindowsAuthenticationProvider class

SPWindowsAuthenticationProvider members

Microsoft.SharePoint.AdministrationOperation namespace