共用方式為


AnonymousState Simple Type (DeploymentManifest)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Specifies a value representing the current state of the AnonymousState attribute on the SPWeb object type - Web Element (DeploymentManifest).


<xs:simpleType name="AnonymousState">
        <xs:restriction base="xs:string">
                <xs:enumeration value="Disabled" />
                <xs:enumeration value="Enabled" />
                <xs:enumeration value="On" />
        </xs:restriction>
</xs:simpleType>

Enumeration Values

Value

Description

Disabled

Disables the attribute to prevent anonymous users from gaining access to the site.

Enabled

Enables the attribute, but does not set it to on. Anonymous users can access lists and libraries.

On

Enables the attribute and sets it to on. Anonymous users can access the entire Web site.

See Also

Reference

SPWeb.WebAnonymousState

Concepts

DeploymentManifest Schema