Table of Contents

Method IsValidKey

Namespace
NATS.Client.KeyValueStore
Assembly
NATS.Client.KeyValueStore.dll

IsValidKey(string)

Tests for a valid Bucket Key

Valid keys are \A[-/_=\.a-zA-Z0-9]+\z, additionally they may not start or end in .

public static NatsResult IsValidKey(string key)

Parameters

key string

Subject to publish the data to.

Returns

NatsResult

A NatsResult signifying if the key is Valid, or if invalid, the exception detail.