List.EnableModeration Property
Gets or sets a value that specifies whether content approval is enabled for the list.
Namespace: Microsoft.SharePoint.Client
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Property EnableModeration As Boolean
Get
Set
'Usage
Dim instance As List
Dim value As Boolean
value = instance.EnableModeration
instance.EnableModeration = value
[RemoteAttribute]
public bool EnableModeration { get; set; }
Property Value
Type: System.Boolean
Returns Booleantrue if content approval is enabled for the list otherwise returns false. The default value is
Exceptions
Exception | Condition |
---|---|
[System.NotSupportedException] | Value is set to true and the list is an external list. Error code: -1. |