dOPC Client Toolkit Help file
TdOPCEventCustomProps Class
dOPCAE.TdOPCEventCustomProps
C++
public: class TdOPCEventCustomProps;
C#
public class TdOPCEventCustomProps;
Visual Basic
Public Class TdOPCEventCustomProps

dOPCAE

TdOPCEventCustomProps contains and manages a collection of custom properties.

In addition to the standard attributes, vendors of OPC AE servers may choose to provide additional attributes with event notifications.

procedure TForm1.dOPCEventServer1Event(Sender: TObject; Event: TdOPCEvent);
var
  i : integer;
begin
    for i := 0 to Event.CustomProps.Count- 1 do //for all custom properties
      //show custom property name and value
      Memo1.Lines.Add(Event.CustomProps.Names[i]+ '->'+ Event.CustomProps.ValueAsString[i]);
end;
TdOPCEventCustomProps Methods 
Description 
IndexOf returns the index value of the custom property with the passed CustPropName. 
ValueByName returns the value of the custom property with the passed CustPropName. 
TdOPCEventCustomProps Properties 
Description 
Count contains the number of objects in the Values collection. 
Errors contains the errors of the custom properties which can be accessed via the Index parameter. 
Names contains the names of the custom properties which can be accessed via the Index parameter. 
Tag 
Tag has no predefined meaning. 
ValuesAsString contains the values of the custom properties, which can be accessed via the Index parameter, as strings. 
Values contains the values of the custom properties which can be accessed via the Index parameter. 
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.