Visavi Visual OPC .NET  

IOpcGroupCollection.Add Method

Adds the AddValue to the item specified by the indexed position in the Items collection.

[Visual Basic]
Overloads Public Function Add(OpcGroupDefinition groupDefinition) As Integer

[C#]
public int Add(OpcGroupDefinition groupDefinition);

[C++]
public: int Add(OpcGroupDefinition groupDefinition);

[JScript]
public function Add(OpcGroupDefinition groupDefinition) : int

Parameters

groupDefinition 
The group definition of the group being added to the collection.

Return Value

The index of the new group in the collection.

Exceptions

Exception Type Condition
COMException

The call to IOPCServer::AddGroup() failed with the error specified in the COMException.ErrorCode.

Requirements

Platforms: Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

IOpcGroupCollection InterfaceIOpcGroupCollection Members | Visavi.Opc.Client Namespace