Class SearchAttributeUpdate
- Namespace
- Temporalio.Workflows
- Assembly
- Temporalio.dll
A single mutation to a search attribute key. This can be a set or, if HasValue is false, an unset.
public abstract class SearchAttributeUpdate
- Inheritance
-
SearchAttributeUpdate
- Derived
- Inherited Members
Properties
HasValue
Gets a value indicating whether this update has a value to set or represents an unset.
public bool HasValue { get; }
Property Value
UntypedKey
Gets the untyped form of the key to update.
public abstract SearchAttributeKey UntypedKey { get; }
Property Value
UntypedValue
Gets the untyped value to update.
public abstract object UntypedValue { get; }
Property Value
Exceptions
- InvalidOperationException
If there is no value.
Methods
ValueSet<T>(SearchAttributeKey<T>, T)
Create an update to set a key. Users may prefer ValueSet(T) instead.
public static SearchAttributeUpdate<T> ValueSet<T>(SearchAttributeKey<T> key, T value) where T : notnull
Parameters
key
SearchAttributeKey<T>Key to set.
value
TValue to set.
Returns
- SearchAttributeUpdate<T>
Search attribute update.
Type Parameters
T
Key type.
ValueUnset<T>(SearchAttributeKey<T>)
Create an update to unset a key. Users may prefer ValueUnset() instead.
public static SearchAttributeUpdate<T> ValueUnset<T>(SearchAttributeKey<T> key) where T : notnull
Parameters
key
SearchAttributeKey<T>Key to unset.
Returns
- SearchAttributeUpdate<T>
Search attribute update.
Type Parameters
T
Key type.