i2 Connect SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/i2connect > records > ISeedRecordBase > hasProperty

    records.ISeedRecordBase.hasProperty() method

    Indicates whether the seed record is of the specified item type and, if so, also has a property with the specified display name.

    Signature:

    hasProperty<TItemType extends schema.IItemType, TPropertyName extends PropertyTypeDisplayNames<TItemType>>(itemType: TItemType, displayName: TPropertyName): boolean;
    

    Introduced: API version 1.0

    Type Parameters

    Parameter Type Description
    TItemType extends schema.IItemType The item type to compare the seed record against, which is inferred from the itemType parameter.
    TPropertyName extends PropertyTypeDisplayNames<TItemType> The display name of the property type, which is inferred from the 'displayName' parameter.

    Parameters

    Parameter Type Description
    itemType TItemType The item type to compare the seed record against.
    displayName TPropertyName The display name of the property type.

    Returns:

    boolean

    true if the seed record is of type itemType and has a displayName property; false otherwise.

    In this article
    Back to top © N. Harris Computer Corporation (2022)