Compartilhar via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property ContentTypeId As SPContentTypeId
    Get
    Set
'Usage
Dim instance As SPView
Dim value As SPContentTypeId

value = instance.ContentTypeId

instance.ContentTypeId = value
[ClientCallableAttribute]
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