Header menu logo ananoid

NanoId Type

Represents a unique textual identifier, with a known length, based on a particular alphabet (i.e. a set of letters).

Instance members

Instance member Description

this.Length

Full Usage: this.Length

Returns: int

The number of characters in this instance.

Returns: int

Static members

Static member Description

NanoId.Empty

Full Usage: NanoId.Empty

Returns: NanoId

The zero-valued instance of this type.

Returns: NanoId

NanoId.IsEmpty(nanoId)

Full Usage: NanoId.IsEmpty(nanoId)

Parameters:
Returns: bool

Returns true, when the given nanoId is zero-valued; otherwise, false.

nanoId : NanoId
Returns: bool

NanoId.NewId()

Full Usage: NanoId.NewId()

Returns: NanoId

Creates a new instance using the default alphabet and size (nb: the default alphabet is URL-friendly numbers, English letters, and symbols: A-Za-z0-9_- and the default size is 21).

Returns: NanoId

Type something to start searching.