Skip to main content

Class WriteOptions

Namespace: Consul
Assembly: Consul.dll

WriteOptions are used to parameterize a write

public class WriteOptions

Inheritance​

object ← WriteOptions

Inherited Members​

object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

Fields​

Default​

public static readonly WriteOptions Default

Field Value​

WriteOptions

Properties​

Datacenter​

Providing a datacenter overwrites the DC provided by the Config

public string Datacenter { get; set; }

Property Value​

string

Namespace​

Namespace is the name of the namespace to send along for the request when no other Namespace is present in the QueryOptions Namespace is an Enterprise-only feature.

public string Namespace { get; set; }

Property Value​

string

Token​

Token is used to provide a per-request ACL token which overrides the agent's default token.

public string Token { get; set; }

Property Value​

string