SPItemKey.IsEmpty Method
Checks if the specified SPItemKey object is empty.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function IsEmpty ( _
itemKey As SPItemKey _
) As Boolean
'Usage
Dim itemKey As SPItemKey
Dim returnValue As Boolean
returnValue = SPItemKey.IsEmpty(itemKey)
public static bool IsEmpty(
SPItemKey itemKey
)
Parameters
itemKey
Type: Microsoft.SharePoint.Workflow.SPItemKeyThe object to be checked.
Return Value
Type: System.Boolean
true if the itemKey object is null , or the value of the Id property of the itemKey object is equal to -1 and the value of the Key property of the itemKey object is null or empty; otherwise, false.
Remarks
The method checks whether the specified SPItemKey object is empty.