Class ContextBuilder
Inheritance
ContextBuilder
Assembly: LaunchDarkly.CommonSdk.dll
Syntax
public sealed class ContextBuilder
Methods
Anonymous(bool)
Declaration
public ContextBuilder Anonymous(bool anonymous)
Parameters
Type |
Name |
Description |
bool |
anonymous |
|
Returns
Build()
Declaration
Returns
Key(string)
Declaration
public ContextBuilder Key(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Kind(ContextKind)
Declaration
public ContextBuilder Kind(ContextKind kind)
Parameters
Returns
Kind(string)
Declaration
public ContextBuilder Kind(string kindString)
Parameters
Type |
Name |
Description |
string |
kindString |
|
Returns
Name(string)
Declaration
public ContextBuilder Name(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Private(params AttributeRef[])
Declaration
public ContextBuilder Private(params AttributeRef[] attributeRefs)
Parameters
Returns
Private(params string[])
Declaration
public ContextBuilder Private(params string[] attributeRefs)
Parameters
Type |
Name |
Description |
string[] |
attributeRefs |
|
Returns
Remove(string)
Declaration
public ContextBuilder Remove(string attributeName)
Parameters
Type |
Name |
Description |
string |
attributeName |
|
Returns
Set(string, LdValue)
Declaration
public ContextBuilder Set(string attributeName, LdValue value)
Parameters
Returns
Set(string, bool)
Declaration
public ContextBuilder Set(string attributeName, bool value)
Parameters
Type |
Name |
Description |
string |
attributeName |
|
bool |
value |
|
Returns
Set(string, double)
Declaration
public ContextBuilder Set(string attributeName, double value)
Parameters
Returns
Set(string, int)
Declaration
public ContextBuilder Set(string attributeName, int value)
Parameters
Type |
Name |
Description |
string |
attributeName |
|
int |
value |
|
Returns
Set(string, long)
Declaration
public ContextBuilder Set(string attributeName, long value)
Parameters
Type |
Name |
Description |
string |
attributeName |
|
long |
value |
|
Returns
Set(string, string)
Declaration
public ContextBuilder Set(string attributeName, string value)
Parameters
Returns
TrySet(string, LdValue)
Declaration
public bool TrySet(string attributeName, LdValue value)
Parameters
Returns