SPView.ContentTypeId property

Gets or sets the ID of the content type with which the view is associated so that the view is available only on folders of this content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property ContentTypeId As SPContentTypeId
    Get
    Set
'Usage
Dim instance As SPView
Dim value As SPContentTypeId

value = instance.ContentTypeId

instance.ContentTypeId = value
public SPContentTypeId ContentTypeId { get; set; }

Property value

Type: Microsoft.SharePoint.SPContentTypeId
An SPContentTypeId object that represents ID of the content type with which the view is associated.

See also

Reference

SPView class

SPView members

Microsoft.SharePoint namespace