Skip to content

PluginRecordRules

Static class in Oadm.Sdk.Plugins · Oadm.Sdk.dll

The checks every IPluginRecords applies.

public static class PluginRecordRules
static void Validate(string collection, IReadOnlyCollection<KeyValuePair<string, string?>> records)

Throws ArgumentException for a bad collection, an empty or too long key, or a value that is not JSON.

static void ValidateCollection(string collection)

Throws ArgumentException for an empty or too long collection name.

const int MaxCollectionLength = 64

The longest collection name.

const int MaxKeyLength = 255

The longest key.