Table of Contents

Class IObjectQueryExtensions

Namespace
CMS.OnlineForms
Assembly
CMS.OnlineForms.dll

Extension methods for ObjectQuery<TObject>

public static class IObjectQueryExtensions
Inheritance
object
IObjectQueryExtensions

Methods

GetExistingItemForContact(ObjectQuery<BizFormItem>, BizFormInfo, Guid?)

Returns existing form item from given query for given contactGuid.

public static BizFormItem GetExistingItemForContact(this ObjectQuery<BizFormItem> query, BizFormInfo formInfo, Guid? contactGuid)

Parameters

query ObjectQuery<BizFormItem>

Object query of form items.

formInfo BizFormInfo

Form description.

contactGuid Guid?

Guid of contact.

Returns

BizFormItem

Instance of BizFormItem when such item exists, false otherwise.

HasExistingItemForContact(ObjectQuery<BizFormItem>, BizFormInfo, Guid?, out BizFormItem)

Returns true when form item for combination given query and given contactGuid exists.

public static bool HasExistingItemForContact(this ObjectQuery<BizFormItem> query, BizFormInfo formInfo, Guid? contactGuid, out BizFormItem item)

Parameters

query ObjectQuery<BizFormItem>

Object query of form items.

formInfo BizFormInfo

Form description.

contactGuid Guid?

Guid of contact.

item BizFormItem

When item exists, it's assigned to parameter.

Returns

bool

True when item exists, false otherwise.