ListViewWebPart.ViewContentTypeId Property

Gets or sets the identifier (ID) of the content type with which the view is associated.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
Public Property ViewContentTypeId As String
    Get
    Set
'Usage
Dim instance As ListViewWebPart
Dim value As String

value = instance.ViewContentTypeId

instance.ViewContentTypeId = value
[WebPartStorageAttribute(Storage.Shared)]
[BrowsableAttribute(false)]
public string ViewContentTypeId { get; set; }

Property Value

Type: System.String
The ID of the content type with which the view is associated.

Remarks

If the value to be set is an empty string, the value is set to System.

See Also

Reference

ListViewWebPart Class

ListViewWebPart Members

Microsoft.SharePoint.WebPartPages Namespace