Share via


SPList.GetDefaultViewForContentType - Méthode

Returns the default view of list data that is used by the specified content type.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Function GetDefaultViewForContentType ( _
    id As SPContentTypeId _
) As SPView
'Utilisation
Dim instance As SPList
Dim id As SPContentTypeId
Dim returnValue As SPView

returnValue = instance.GetDefaultViewForContentType(id)
public SPView GetDefaultViewForContentType(
    SPContentTypeId id
)

Paramètres

Valeur renvoyée

Type : Microsoft.SharePoint.SPView
The view.

Remarques

This method gets the default view from the Views property.

Voir aussi

Référence

SPList classe

SPList - Membres

Microsoft.SharePoint - Espace de noms