3.1.4.8.2.3 ListInfo

The ListInfo element contains metadata about a list in a Document Workspace. This element is defined as follows:

 <xs:element name="ListInfo">
   <xs:complexType>
     <xs:choice>
       <xs:element ref="tns:Error" minOccurs="0"/>
       <xs:sequence>
         <xs:element name="Moderated">
          <s:simpleType>
            <s:restriction base="s:string">
            <s:enumeration value="True" />
            <s:enumeration value="False" />
            </s:restriction>
          </s:simpleType>
         </xs:element>
         <xs:element name="ListPermissions">
           <xs:complexType>
               <xs:sequence>
                 <xs:element name="InsertListItems" minOccurs="0"/>
                 <xs:element name="EditListItems" minOccurs="0"/>
                 <xs:element name="DeleteListItems" minOccurs="0"/>
                 <xs:element name="ManageLists" minOccurs="0"/>
                 <xs:element ref="tns:Error" minOccurs="0"/>
               </xs:sequence>
           </xs:complexType>
         </xs:element>
       </xs:sequence>
     </xs:choice>
     <xs:attribute name="Name" type="xs:string" use="required"/>
   </xs:complexType>
 </xs:element>

Error: The Error element is returned when there is an error accessing the list information. The error code values for this element are shown in the following table.

Error code

Description

NoAccess

The current user does not have sufficient permissions to access list permission information. The AccessUrl attribute MUST NOT be present in this element. <10>

ServerFailure

The current user does not have sufficient permissions to view the list.

Moderated: Boolean value that specifies whether adding new entries to the list requires the approval of the list owner.

ListPermissions: This element displays the current user permissions that are associated with the list. The following elements MUST be present if, and only if, the user has that permission: InsertListItems, EditListItems, DeleteListItems, and ManageLists.

InsertListItems: Specifies that the current user can add new items to the list.

EditListItems: Specifies that the current user can edit list items.

DeleteListItems: Specifies that the current user can delete list items.

ManageLists: Specifies that the current user can manage the list.

Error: This element is present if an error is encountered when attempting to get permission information.

Name: Contains the name of the list.