<< 点击显示目录 >> 主页 PVI通信 > PVI帮助信息 > PVI Services > BR.AN.Namespace > BR.AN.PviServices > HashtableArray Class > HashtableArray Methods > HashtableArray.Add Method |
Adds an element with the specified key and value into the System.Collections.Hashtable.
[Visual Basic]
Public Sub Add( _
ByVal key As Object, _
ByVal value As Object _
)
[C#]
public int Add(
object key,
object value
);
key
The key of the element to add.
value
The value of the element to add. The value can be null.
The zero base index on success else -1
Exceptions: System.ArgumentNullException: key is null. System.ArgumentException: An element with the same key already exists in the System.Collections.Hashtable. System.NotSupportedException: The Hashtable is read-only. -or- The Hashtable has a fixed size.
HashtableArray Class | BR.AN.PviServices Namespace
Generated from assembly BR.AN.PviServices [8.1.0.4]