[This is preliminary documentation and is subject to change.]
Adds an Attribute to the AttributeSet.
| C# | Visual Basic | Visual C++ |
The position into which the new Attribute was inserted.
This sample shows how to call the AddAttribute method.
CopyC#
AttributeSet attributeSet = new DataSet(); attributeSet.AddAttribute("0x12345678", VR.AE, "String0", "String1", "String2");
| Exception | Condition |
|---|---|
| InvalidCastException |
The list is an Object array.
The items in this list are converted to the underlying vr as much as possible.
However InvalidCastException may occur during these run-time conversions.
|