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
id
Type: System.StringA string of hexadecimal characters.
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
Microsoft.SharePoint Namespace