SPList.ForceDefaultContentType property
Specifies whether we want to return the default Document root content type.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property ForceDefaultContentType As Boolean
Get
Set
'Usage
Dim instance As SPList
Dim value As Boolean
value = instance.ForceDefaultContentType
instance.ForceDefaultContentType = value
public bool ForceDefaultContentType { get; set; }
Property value
Type: System.Boolean
true if force default content type is enabled; otherwise, false. Default is false