Partager via


Set.newmethod(Types) Method

Definition

Creates a set that can contain elements of the specified type.

protected:
 void newmethod(Microsoft::Dynamics::Ax::Xpp::Types _Type);
protected void newmethod (Microsoft.Dynamics.Ax.Xpp.Types _Type);
override this.newmethod : Microsoft.Dynamics.Ax.Xpp.Types -> unit
Protected Sub newmethod (_Type As Types)

Parameters

_Type
Types

The type of the elements within the set.

Remarks

The type of the set cannot be changed after the set has been created.

The following example creates a set of integers and a set of objects.

{ 
    // Create a set of integers. 
    Set is = new Set (Types::Integer); 
    // Create a set of objects. 
    Set os = new Set (Types::Class); 
}

Applies to