Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SharePoint 2010
SDK Documentation
Core Class Library
SPList Class
SPList Properties
 AllowEveryoneViewItems Property
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2010 product release

Other versions are also available for the following:
SPList..::.AllowEveryoneViewItems Property

Gets or sets a Boolean value specifying whether everyone can view documents in the document library or attachments to items in the list.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Visual Basic (Declaration)
Public Property AllowEveryoneViewItems As Boolean
    Get
    Set
Visual Basic (Usage)
Dim instance As SPList
Dim value As Boolean

value = instance.AllowEveryoneViewItems

instance.AllowEveryoneViewItems = value
C#
public bool AllowEveryoneViewItems { get; set; }

Property Value

Type: System..::.Boolean
true if the documents or attachments can be viewed by everyone; otherwise, false.

The AllowEveryoneViewItems property does not apply to all list items, but only to documents in document libraries or to attachments in list items. This property only works when users browse directly to a file through the browser, and it has no effect on the rest of the user interface or the object model.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker