PartDiscovery.AddElement(Array, Object, Type) 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.
Creates an array that contains the contents of a prior array (if any) and one additional element.
protected static Array AddElement (Array priorArray, object value, Type elementType);
static member AddElement : Array * obj * Type -> Array
Protected Shared Function AddElement (priorArray As Array, value As Object, elementType As Type) As Array
Parameters
- priorArray
- Array
The previous version of the array. May be null
. This will not be modified by this method.
- value
- Object
The value to add to the array. May be null
.
- elementType
- Type
The element type for the array, if it is created fresh. May be null
.
Returns
A new array.