SP.View.contentTypeId Property
Applies to: SharePoint Foundation 2010
Gets or sets the identifier of the content type with which the view is associated so that the view is available only on folders of this content type.
var value = SP.View.get_contentTypeId();
SP.View.set_contentTypeId(value);
Property Value
Type: SP.ContentTypeId