Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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


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.

Community Additions

© 2015 Microsoft