共用方式為


IExternalSecurityWeb.GetAnonymousState method

傳回布林值,指出是否已啟用匿名存取網站。

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

Syntax

'宣告
Function GetAnonymousState As Boolean
'用途
Dim instance As IExternalSecurityWeb
Dim returnValue As Boolean

returnValue = instance.GetAnonymousState()
bool GetAnonymousState()

傳回值

Type: System.Boolean
true如果已啟用匿名存取網站 ;否則, false。

備註

GetAnonymousState方法會傳回由尋檢程式,在 [搜尋 Web 服務的資訊。

請參閱

參照

IExternalSecurityWeb interface

IExternalSecurityWeb members

Microsoft.SharePoint namespace