This documentation is archived and is not being maintained.

SPList.GetContentTypeIdByUrl Method

Windows SharePoint Services 3

Returns the content type identifier for the content type with the specified URL.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPContentTypeId GetContentTypeIdByUrl(
	string url
)

Parameters

url
Type: System.String
A string that contains the URL for the content type.

Return Value

Type: Microsoft.SharePoint.SPContentTypeId
An SPContentTypeId value that represents the content type identifier.
Show: