REST.Backend.ServiceComponents.TCustomBackendPush.TExtrasCollection.GetAttrCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetAttrCount: integer; override;

C++

DYNAMIC int __fastcall GetAttrCount();

Properties

Type Visibility Source Unit Parent
function protected
REST.Backend.ServiceComponents.pas
REST.Backend.ServiceComponents.hpp
REST.Backend.ServiceComponents TExtrasCollection

Description

Returns the number of custom attributes associated with items in the collection.

REST.Backend.ServiceComponents.TCustomBackendPush.TExtrasCollection.GetAttrCount inherits from System.Classes.TCollection.GetAttrCount. All content below this line refers to System.Classes.TCollection.GetAttrCount.

Returns the number of custom attributes associated with items in the collection.

TCollection descendants can associate user-defined attributes with the items in the collection. Each attribute has a name and, for each item in the collection, a value that is a string. GetAttrCount returns the number of distinct attributes assigned to each item in the collection.

As implemented in TCollection, GetAttrCount always returns 0, because TCollection defines no custom attributes.

See Also