This documentation is archived and is not being maintained.
CollectionEditor.SetItems Method
.NET Framework 1.1
Sets the specified array as the items of the collection.
[Visual Basic] Protected Overridable Function SetItems( _ ByVal editValue As Object, _ ByVal value() As Object _ ) As Object [C#] protected virtual object SetItems( object editValue, object[] value ); [C++] protected: virtual Object* SetItems( Object* editValue, Object* value __gc[] ); [JScript] protected function SetItems( editValue : Object, value : Object[] ) : Object;
Parameters
- editValue
- The collection to edit.
- value
- An array of objects to set as the collection items.
Return Value
The newly created collection object or, otherwise, the collection indicated by the editValue parameter.
Remarks
If setting requires that a new object be created, the new object is returned. Otherwise, the editValue parameter is returned.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
CollectionEditor Class | CollectionEditor Members | System.ComponentModel.Design Namespace
Show: