Share via


SPContentTypeId Constructor

Initializes a new instance of the SPContentTypeId type using a specified hexadecimal string.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub New ( _
    id As String _
)
'Usage
Dim id As String

Dim instance As New SPContentTypeId(id)
public SPContentTypeId(
    string id
)

Parameters

Exceptions

Exception Condition
ArgumentException

id is null or not in the correct format.

Remarks

Use this constructor to reconstitute a content ID that you have previously serialized by using the ToString() method.

See Also

Reference

SPContentTypeId Structure

SPContentTypeId Members

Microsoft.SharePoint Namespace

Other Resources

Content Type IDs