Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.SPContentTypeId
The content type identifier (ID).
Type: Microsoft.SharePoint.SPView
The view.
This method gets the default view from the Views property.
Please sign in to use this experience.
Sign in