This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Download Microsoft Edge
More info about Internet Explorer and Microsoft Edge
public ref class Set : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
public class Set : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
type Set = class
inherit XppObjectBase
Public Class Set
Inherits XppObjectBase
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
The values may be of any X++ type. All values in the set must have the same type. When a value that is already stored in the set is added, it is ignored and does not increase the number of elements in the set. The values stored in the set can be traversed by using objects of type SetEnumerator. The contents of a set are stored in a way that facilitates efficient look up of the elements.
The following example checks whether any of the values in one set, the noConfigs set, are found in a second set, the yesConfigs set. If they are, they are removed from the yesConfigs set.
Set noConfigs;
Set yesConfigs;
ConfigId configId;
SetEnumerator se;
se = noConfigs.getEnumerator();
while (se.moveNext())
configId = se.current();
if (yesConfigs.in(configId))
yesConfigs.remove(configId);