Partager via


DELETEFIELD Method

Deletes a field from a SharePoint list.

Syntax

<Method ID="Text">
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="Cmd">DELETEFIELD</SetVar>
  <SetVar Name="Field">Field_Name</SetVar>
  <SetVar Name="owshiddenversion">Integer</SetVar>
</Method>

Parameters

ID = "Text"

Scope = "Request"

Name = "Cmd"

Name = "Field"

Name = "owshiddenversion"

Decoded

<Method ID="0,DELETEFIELDsample">
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="Cmd">DELETEFIELD</SetVar>
  <SetVar Name="Field">sample</SetVar>
  <SetVar Name="owshiddenversion">8</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 SharePoint Services for more information.

Sample Output