Partager via


MODLISTSETTINGS Method

Changes the properties of a SharePoint list.

Syntax

<Method ID="Text">
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="Cmd">MODLISTSETTINGS</SetVar>
  <SetVar Name="OldListTitle">Text</SetVar>
  <SetVar Name="NewListTitle">Text</SetVar>
  <SetVar Name="Description">Text</SetVar>
  <SetVar Name="ReadSecurity">[1|2]</SetVar>
  <SetVar Name="WriteSecurity">[1|2|4]</SetVar>
  <SetVar Name="owshiddenversion">Integer</SetVar>
  <SetVar Name="displayOnLeft">[TRUE|FALSE]</SetVar>
  <SetVar Name="DisableAttachments">[1|2]</SetVar>
  <SetVar Name="Direction">[1|2|anything]</SetVar>
  <SetVar Name="Moderated">[TRUE|FALSE]</SetVar>
  <SetVar Name="HiddenList">[TRUE|FALSE]</SetVar>
  <SetVar Name="GlobalMtgDataList">[TRUE|FALSE]</SetVar>
  <SetVar Name="VersioningEnabled">[TRUE|FALSE]</SetVar>
  <SetVar Name="NewListTemplate">Text</SetVar>
  <SetVar Name="showUsernames">[on|off]</SetVar>
  <SetVar Name="AllowMultiVote">[on|off]</SetVar>
  <SetVar Name="EnableAssignToEmail">[0|1]</SetVar>
</Method>

Parameters

ID = "Text"

Scope = "Request"

Name = "Cmd"

Name = "Old_Title"

Name = "New_Title"

Name = "Description"

Name = "ReadSecurity"

Name = "WriteSecurity"

Name = "owshiddenversion"

Name = "displayOnLeft "

Name = "DisableAttachments "

Name = "Direction"

Name = "Moderated"

Name = "HiddenList "

Name = "GlobalMtgDataList"

Name = "VersioningEnabled"

Name = "NewListTemplate"

Name = "showUsernames"

Name = "AllowMultiVote"

Name = "EnableAssignToEmail "

Decoded

<Method ID="0,MODLISTSETTINGS">
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="Cmd">MODLISTSETTINGS</SetVar>
  <SetVar Name="OldListTitle">Old_Title</SetVar>
  <SetVar Name="NewListTitle">New_Title</SetVar>
  <SetVar Name="Description">Description</SetVar>
  <SetVar Name="ReadSecurity">1</SetVar>
  <SetVar Name="WriteSecurity">2</SetVar>
  <SetVar Name="owshiddenversion">9</SetVar>
</Method>

Return Value

Success

Returns the code attribute, which is a signed-decimal representation of an HRESULT.

Error

Returns an XML-encoded Unicode (UTF-8) text string. See Error Message Format for Windows Shared Services for more information.

Sample Output