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(String groupName) As Integer

[C#]
public int Add(string groupName);

[C++]
public: int Add(String groupName);

[JScript]
public function Add(String groupName) : int

Parameters

groupName 
The name of the group being added to the collection. The rest of the properties in the group are given their default values.

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