Adds a new item to the list.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function AddNew() As Object |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectView(Of T)
Dim value As Object
value = instance.AddNew()
|
| C# | |
|---|
public object AddNew() |
| Managed Extensions for C++ | |
|---|
public: Object* AddNew(); |
| C++/CLI | |
|---|
public:
Object^ AddNew(); |
Return Value
The item added to the list.
Exceptions
| Exception | Description |
| NotSupportedException | The object to create has no public or private constructor without arguments. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also