Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the default view of list data that is used by the specified content type.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public Function GetDefaultViewForContentType ( _
id As SPContentTypeId _
) As SPView
'Usage
Dim instance As SPList
Dim id As SPContentTypeId
Dim returnValue As SPView
returnValue = instance.GetDefaultViewForContentType(id)
public SPView GetDefaultViewForContentType(
SPContentTypeId id
)
id
Type: Microsoft.SharePoint.SPContentTypeIdThe content type identifier (ID).
Type: Microsoft.SharePoint.SPView
The view.
This method gets the default view from the Views property.