DynamicValue Class
Represents a dynamic data structure for supporting nested sets of key-value pairs in workflow.
Namespace: Microsoft.Activities
Assembly: Microsoft.Activities (in Microsoft.Activities.dll)
Inheritance Hierarchy
System.Object
Microsoft.Activities.DynamicValue
Syntax
[DefaultMemberAttribute("Item")]
[DataContractAttribute]
public sealed class DynamicValue : ICollection<DynamicValue>,
IEnumerable<DynamicValue>, IDictionary<string, DynamicValue>,
ICollection<KeyValuePair<string, DynamicValue>>, IEnumerable<KeyValuePair<string, DynamicValue>>,
IEnumerable
[DefaultMemberAttribute("Item")]
[DataContractAttribute]
public ref class DynamicValue sealed : ICollection<DynamicValue^>,
IEnumerable<DynamicValue^>, IDictionary<String^, DynamicValue^>,
ICollection<KeyValuePair<String^, DynamicValue^>>, IEnumerable<KeyValuePair<String^, DynamicValue^>>,
IEnumerable
[<Sealed>]
[<DefaultMemberAttribute("Item")>]
[<DataContractAttribute>]
type DynamicValue =
class
interface ICollection<DynamicValue>
interface IEnumerable<DynamicValue>
interface IDictionary<string, DynamicValue>
interface ICollection<KeyValuePair<string, DynamicValue>>
interface IEnumerable<KeyValuePair<string, DynamicValue>>
interface IEnumerable
end
<DefaultMemberAttribute("Item")>
<DataContractAttribute>
Public NotInheritable Class DynamicValue
Implements ICollection(Of DynamicValue), IEnumerable(Of DynamicValue),
IDictionary(Of String, DynamicValue), ICollection(Of KeyValuePair(Of String, DynamicValue)),
IEnumerable(Of KeyValuePair(Of String, DynamicValue)), IEnumerable
Constructors
Name | Description | |
---|---|---|
DynamicValue() | Initializes a new instance of the DynamicValue class with default value. |
|
DynamicValue(Boolean) | Initializes a new instance of the DynamicValue class with a Boolean value. |
|
DynamicValue(DateTime) | Initializes a new instance of the DynamicValue class with a DateTime value. |
|
DynamicValue(Double) | Initializes a new instance of the DynamicValue class with a Double value. |
|
DynamicValue(Guid) | Initializes a new instance of the DynamicValue class with a GUID value. |
|
DynamicValue(Int32) | Initializes a new instance of the DynamicValue class with an Int32 value. |
|
DynamicValue(Int64) | Initializes a new instance of the DynamicValue class with an Int64 value. |
|
DynamicValue(String) | Initializes a new instance of the DynamicValue class with a String value. |
|
DynamicValue(TimeSpan) | Initializes a new instance of the DynamicValue class with a TimeSpan value. |
Properties
Name | Description | |
---|---|---|
Count | Gets the number of child items in the DynamicValue. |
|
IsReadOnly | Gets a value that indicates whether the DynamicValue is read only. |
|
Item[Int32] | Gets or sets an item by ID. |
|
Item[String] | Gets or sets an item by name. |
|
Keys | Gets the collection of keys for the dynamic values. |
|
Values | Gets the collection of values for this instance. |
Methods
Name | Description | |
---|---|---|
Add(DynamicValue) | Adds a DynamicValue as a child item. |
|
Add(KeyValuePair<String, DynamicValue>) | Adds a DynamicValue as a child item. |
|
Add(String, DynamicValue) | Adds a DynamicValue with specific key and value. |
|
Clear() | Clears the DynamicValue. |
|
Contains(DynamicValue) | Determines whether the DynamicValue contains a target item. |
|
Contains(KeyValuePair<String, DynamicValue>) | Determines whether the DynamicValue contains a target item. |
|
ContainsKey(String) | Specifies whether the DynamicValue contains a specific key. |
|
CopyTo(DynamicValue[], Int32) | Copies the DynamicValue into an array. |
|
CopyTo(KeyValuePair<String, DynamicValue>[], Int32) | Copies the DynamicValue into an array. |
|
Equals(Object) | Specifies whether the DynamicValue object is the same as another object.(Overrides Object.Equals(Object).) |
|
GetEnumerator() | Gets an enumerator that iterates through the DynamicValue. |
|
GetHashCode() | Gets the hash code associated with DynamicValue.(Overrides Object.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
Parse(String) | Parses the string into a DynamicValue. |
|
Remove(DynamicValue) | Removes an item from a DynamicValue. |
|
Remove(KeyValuePair<String, DynamicValue>) | Removes an item from a DynamicValue. |
|
Remove(String) | Removes an item from a DynamicValue using the specified key. |
|
ToString() | Returns a string representation of the DynamicValue.(Overrides Object.ToString().) |
|
TryGetValue(String, DynamicValue) | Gets the value associated with the specified key. |
Operators
Name | Description | |
---|---|---|
Equality(DynamicValue, DynamicValue) | Specifies whether the two DynamicValue object is equal. |
|
Implicit(Boolean to DynamicValue) | Casts a Boolean value to a DynamicValue. |
|
Implicit(DateTime to DynamicValue) | Casts a DateTime value to a DynamicValue. |
|
Implicit(Double to DynamicValue) | Casts a Double value to a DynamicValue. |
|
Implicit(DynamicValue to Boolean) | Casts a dynamic value into a Boolean Value. |
|
Implicit(DynamicValue to DateTime) | Converts a dynamic value to a DateTime value. |
|
Implicit(DynamicValue to Double) | Converts a dynamic value to a Double value. |
|
Implicit(DynamicValue to Guid) | Converts a dynamic value to a Guid value. |
|
Implicit(DynamicValue to Int32) | Converts a dynamic value to an Int32 value. |
|
Implicit(DynamicValue to String) | Converts a dynamic value to a String value. |
|
Implicit(DynamicValue to TimeSpan) | Converts a dynamic value to a TimeSpan value. |
|
Implicit(Guid to DynamicValue) | Casts a GUID value to a DynamicValue. |
|
Implicit(Int32 to DynamicValue) | Casts an Int32 value to a DynamicValue. |
|
Implicit(Int64 to DynamicValue) | Converts an Int64 value to a Dynamic Value. |
|
Implicit(String to DynamicValue) | Casts a String value to a DynamicValue. |
|
Implicit(TimeSpan to DynamicValue) | Converts a TimeSpan value to a Dynamic Value. |
|
Inequality(DynamicValue, DynamicValue) | Specifies whether the two DynamicValue object are not equal. |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable<KeyValuePair<String, DynamicValue>>.GetEnumerator() | ||
IEnumerable.GetEnumerator() | Gets an enumerator that iterates through the DynamicValue. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.Activities Namespace
Return to top