MetadataKey
Static class · Namespace OMX.ModAPI · Assembly OMX.ModAPI.Shared.dll
public static class MetadataKeyThe grammar shared by metadata keys and custom-event names: owner:name, where the owner is the resource id that may write the key or emit the event. Ordinal and case-sensitive.
Fields
Section titled “Fields”MaxLength
Section titled “MaxLength”public const int MaxLength = 97;MaxNameLength
Section titled “MaxNameLength”public const int MaxNameLength = 64;MaxOwnerLength
Section titled “MaxOwnerLength”public const int MaxOwnerLength = 32;Methods
Section titled “Methods”IsValid
Section titled “IsValid”public static bool IsValid(string? key);Parameters
keystring?
Returns bool
IsValidOwner
Section titled “IsValidOwner”public static bool IsValidOwner(string? owner);Whether owner alone is valid as a resource id / key owner.
Parameters
ownerstring?
Returns bool
public static string Owner(string key);The owner part of a valid key.
Parameters
keystring
Returns string
Validate
Section titled “Validate”public static string? Validate(string? key);Null when the key is a valid owner:name, otherwise the reason it is not.
Parameters
keystring?
Returns string?
