SPContentTypeId.Empty property

Gets an empty content type identifier (ID).

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared ReadOnly Property Empty As SPContentTypeId
    Get
'Usage
Dim value As SPContentTypeId

value = SPContentTypeId.Empty
public static SPContentTypeId Empty { get; }

Property value

Type: Microsoft.SharePoint.SPContentTypeId
A value that is the functional equivalent to String.Empty. It is not, however, an empty string.

Remarks

You can use this static property in assignments to initialize an SPContentTypeId variable. The technique is demonstrated in the following code.

Dim id As SPContentTypeId = SPContentTypeId.Empty
SPContentTypeId id = SPContentTypeId.Empty;

Note

SPContentTypeId is not a nullable type. Therefore, you cannot initialize an instance as a null reference (Nothing in Visual Basic).

See also

Reference

SPContentTypeId structure

SPContentTypeId members

Microsoft.SharePoint namespace