GlobalObjectCollection.IList.Add(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an object to the collection.
virtual int System.Collections.IList.Add(System::Object ^ item) = System::Collections::IList::Add;
virtual int System.Collections.IList.Add(Platform::Object ^ item) = System::Collections::IList::Add;
int System.Collections.IList.Add(winrt::Windows::Foundation::IInspectable const & item);
int IList.Add (object item);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (item As Object) As Integer Implements IList.Add
Parameters
- item
- Object
The object to be added.
Returns
S_OK if the method succeeded, otherwise an error code.