SPList Properties


SPList.EnableModeration Property (Microsoft.SharePoint)
Gets or sets a Boolean value that specifies whether Content Approval is enabled for the list.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public Property EnableModeration As Boolean
Visual Basic (Usage)
Dim instance As SPList
Dim value As Boolean

value = instance.EnableModeration

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

Property Value

true if Content Approval is enabled; otherwise, false.
See Also



Community Content

SuperEdge
Except for Picture Libraries
Unfortunatelly if the list base type is a picture library, this property won't work and it will throw an exception if you try to update it.
For more details about this case you can see here http://novatecno.blogspot.com/2009/08/how-to-versioning-settings-splist.html




Edge
http://www.superedge.net

Page view tracker