Click or drag to resize

MetadataManagerExist Method (Int32)

Exist Metadata

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public bool Exist(
	int id
)

Parameters

id
Type: SystemInt32
ID

Return Value

Type: Boolean
Result - True: Exist. False: Not Exist.
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    if (vizcore3d.Model.IsOpen() == false) return;

    // Delete Items
    int[] items = new int[] { 4, 5, 6, 10};

    foreach (int item in items)
    {
        if (vizcore3d.Metadata.Exist(item) == false) continue;

        vizcore3d.Metadata.Delete(item);
    }
}
See Also