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 content type identifier (ID) for the content type with the specified URL.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public Function GetContentTypeIdByUrl ( _
url As String _
) As SPContentTypeId
'Usage
Dim instance As SPList
Dim url As String
Dim returnValue As SPContentTypeId
returnValue = instance.GetContentTypeIdByUrl(url)
public SPContentTypeId GetContentTypeIdByUrl(
string url
)
url
Type: System.StringThe URL for the content type.
Type: Microsoft.SharePoint.SPContentTypeId
The content type ID.
If url is null or an empty string, this method returns RootOfList().