共用方式為


SPIisSettings.AllowAnonymous property

取得或設定 Boolean 值,以指定的 Web 應用程式是否允許匿名存取。

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

Syntax

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

value = instance.AllowAnonymous

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

Property value

Type: System.Boolean
若要允許匿名存取 ; true否則,請false。預設值為false。

請參閱

參照

SPIisSettings class

SPIisSettings members

Microsoft.SharePoint.Administration namespace