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)

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