API Reference
Struct
OptionalValue`1
Represents an optional value with explicit "specified" state.
Inheritance
- ValueType
- OptionalValue`1
Usage
Explore 6 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
- Property CollaborationModeMask.DeveloperInstructions
- Property CollaborationModeMask.ReasoningEffort
- Method OptionalValue.FromValue
- Property OptionalValue.Unspecified
Accepted by parameters 2
- Constructor CollaborationModeMask.CollaborationModeMask
- Constructor CollaborationModeMask.CollaborationModeMask
Type Parameters
- T
Constructors
public OptionalValue<T>(Boolean isSpecified, T? value) #Initializes a new optional value.
Parameters
- isSpecified System.Boolean
- Whether the value is specified.
- value T?
- The value when specified.
Methods
public static OptionalValue<T?> FromValue(T? value) #Returns:
OptionalValue<T?>Returns a specified optional value with the provided payload.
Parameters
- value T?
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object?