Click or drag to resize

MetadataManagerGetData Method (Int32)

Get Metadata

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public byte[] GetData(
	int id
)

Parameters

id
Type: SystemInt32
ID

Return Value

Type: Byte
Metadata Stream
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

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

    // Count
    int count = vizcore3d.Metadata.Count;

    // Map : ID-NAME
    Dictionary<int, string> data = vizcore3d.Metadata.GetIdNameMap();

    foreach (KeyValuePair<int, string> item in data)
    {
        int id = item.Key;
        string name = item.Value;

        // Get Metadata Binary
        byte[] buffer = vizcore3d.Metadata.GetData(id);

        // Some code here...
    }
}
See Also