A static method. The label must match one of the known spellings exactly, including case. Several spellings map to the same MetaClass, because labels vary between instruments and file versions.
Syntax
| Syntax | Description |
|---|
| static FindMeta(string label) | Looks up a trailer label. |
Parameters
| Name | Type | Description |
|---|
| label | string | The label as it appears in the file. |
Returns
| Type | Description |
|---|
| MetaClass | The matching MetaClass, or MetaClass.None if the label is not recognized. |
Example
1
2
3
4
5
| using Nova.Io.Meta;
MetaClass a = MetaDictionary.FindMeta("Charge State"); // MetaClass.ChargeState
MetaClass b = MetaDictionary.FindMeta("Z"); // MetaClass.ChargeState
MetaClass c = MetaDictionary.FindMeta("Not A Real Label"); // MetaClass.None
|