Click or drag to resize
IObjectQueryExtensionsHasExistingItemForContact Method
Returns true when form item for combination given query and given contactGuid exists.

Namespace: CMS.OnlineForms
Assembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 12.0.0
Syntax
C#
public static bool HasExistingItemForContact(
	this ObjectQuery<BizFormItem> query,
	BizFormInfo formInfo,
	Nullable<Guid> contactGuid,
	out BizFormItem item
)

Parameters

query
Type: CMS.DataEngineObjectQueryBizFormItem
Object query of form items.
formInfo
Type: CMS.OnlineFormsBizFormInfo
Form description.
contactGuid
Type: SystemNullableGuid
Guid of contact.
item
Type: CMS.OnlineFormsBizFormItem
When item exists, it's assigned to parameter.

Return Value

Type: Boolean
True when item exists, false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ObjectQueryBizFormItem. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also