SPList.GetContentTypeIdByUrl - Méthode

Returns the content type identifier (ID) for the content type with the specified URL.

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

Syntaxe

'Déclaration
Public Function GetContentTypeIdByUrl ( _
    url As String _
) As SPContentTypeId
'Utilisation
Dim instance As SPList
Dim url As String
Dim returnValue As SPContentTypeId

returnValue = instance.GetContentTypeIdByUrl(url)
public SPContentTypeId GetContentTypeIdByUrl(
    string url
)

Paramètres

Valeur renvoyée

Type : Microsoft.SharePoint.SPContentTypeId
The content type ID.

Remarques

If url is null or an empty string, this method returns RootOfList().

Voir aussi

Référence

SPList classe

SPList - Membres

Microsoft.SharePoint - Espace de noms