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
System_CAPS_pubmethod DynamicValue()

Initializes a new instance of the DynamicValue class with default value.

System_CAPS_pubmethod DynamicValue(Boolean)

Initializes a new instance of the DynamicValue class with a Boolean value.

System_CAPS_pubmethod DynamicValue(DateTime)

Initializes a new instance of the DynamicValue class with a DateTime value.

System_CAPS_pubmethod DynamicValue(Double)

Initializes a new instance of the DynamicValue class with a Double value.

System_CAPS_pubmethod DynamicValue(Guid)

Initializes a new instance of the DynamicValue class with a GUID value.

System_CAPS_pubmethod DynamicValue(Int32)

Initializes a new instance of the DynamicValue class with an Int32 value.

System_CAPS_pubmethod DynamicValue(Int64)

Initializes a new instance of the DynamicValue class with an Int64 value.

System_CAPS_pubmethod DynamicValue(String)

Initializes a new instance of the DynamicValue class with a String value.

System_CAPS_pubmethod DynamicValue(TimeSpan)

Initializes a new instance of the DynamicValue class with a TimeSpan value.

Properties

Name Description
System_CAPS_pubproperty Count

Gets the number of child items in the DynamicValue.

System_CAPS_pubproperty IsReadOnly

Gets a value that indicates whether the DynamicValue is read only.

System_CAPS_pubproperty Item[Int32]

Gets or sets an item by ID.

System_CAPS_pubproperty Item[String]

Gets or sets an item by name.

System_CAPS_pubproperty Keys

Gets the collection of keys for the dynamic values.

System_CAPS_pubproperty Values

Gets the collection of values for this instance.

Methods

Name Description
System_CAPS_pubmethod Add(DynamicValue)

Adds a DynamicValue as a child item.

System_CAPS_pubmethod Add(KeyValuePair<String, DynamicValue>)

Adds a DynamicValue as a child item.

System_CAPS_pubmethod Add(String, DynamicValue)

Adds a DynamicValue with specific key and value.

System_CAPS_pubmethod Clear()

Clears the DynamicValue.

System_CAPS_pubmethod Contains(DynamicValue)

Determines whether the DynamicValue contains a target item.

System_CAPS_pubmethod Contains(KeyValuePair<String, DynamicValue>)

Determines whether the DynamicValue contains a target item.

System_CAPS_pubmethod ContainsKey(String)

Specifies whether the DynamicValue contains a specific key.

System_CAPS_pubmethod CopyTo(DynamicValue[], Int32)

Copies the DynamicValue into an array.

System_CAPS_pubmethod CopyTo(KeyValuePair<String, DynamicValue>[], Int32)

Copies the DynamicValue into an array.

System_CAPS_pubmethod Equals(Object)

Specifies whether the DynamicValue object is the same as another object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethod GetEnumerator()

Gets an enumerator that iterates through the DynamicValue.

System_CAPS_pubmethod GetHashCode()

Gets the hash code associated with DynamicValue.(Overrides Object.GetHashCode().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static Parse(String)

Parses the string into a DynamicValue.

System_CAPS_pubmethod Remove(DynamicValue)

Removes an item from a DynamicValue.

System_CAPS_pubmethod Remove(KeyValuePair<String, DynamicValue>)

Removes an item from a DynamicValue.

System_CAPS_pubmethod Remove(String)

Removes an item from a DynamicValue using the specified key.

System_CAPS_pubmethod ToString()

Returns a string representation of the DynamicValue.(Overrides Object.ToString().)

System_CAPS_pubmethod TryGetValue(String, DynamicValue)

Gets the value associated with the specified key.

Operators

Name Description
System_CAPS_puboperatorSystem_CAPS_static Equality(DynamicValue, DynamicValue)

Specifies whether the two DynamicValue object is equal.

System_CAPS_puboperatorSystem_CAPS_static Implicit(Boolean to DynamicValue)

Casts a Boolean value to a DynamicValue.

System_CAPS_puboperatorSystem_CAPS_static Implicit(DateTime to DynamicValue)

Casts a DateTime value to a DynamicValue.

System_CAPS_puboperatorSystem_CAPS_static Implicit(Double to DynamicValue)

Casts a Double value to a DynamicValue.

System_CAPS_puboperatorSystem_CAPS_static Implicit(DynamicValue to Boolean)

Casts a dynamic value into a Boolean Value.

System_CAPS_puboperatorSystem_CAPS_static Implicit(DynamicValue to DateTime)

Converts a dynamic value to a DateTime value.

System_CAPS_puboperatorSystem_CAPS_static Implicit(DynamicValue to Double)

Converts a dynamic value to a Double value.

System_CAPS_puboperatorSystem_CAPS_static Implicit(DynamicValue to Guid)

Converts a dynamic value to a Guid value.

System_CAPS_puboperatorSystem_CAPS_static Implicit(DynamicValue to Int32)

Converts a dynamic value to an Int32 value.

System_CAPS_puboperatorSystem_CAPS_static Implicit(DynamicValue to String)

Converts a dynamic value to a String value.

System_CAPS_puboperatorSystem_CAPS_static Implicit(DynamicValue to TimeSpan)

Converts a dynamic value to a TimeSpan value.

System_CAPS_puboperatorSystem_CAPS_static Implicit(Guid to DynamicValue)

Casts a GUID value to a DynamicValue.

System_CAPS_puboperatorSystem_CAPS_static Implicit(Int32 to DynamicValue)

Casts an Int32 value to a DynamicValue.

System_CAPS_puboperatorSystem_CAPS_static Implicit(Int64 to DynamicValue)

Converts an Int64 value to a Dynamic Value.

System_CAPS_puboperatorSystem_CAPS_static Implicit(String to DynamicValue)

Casts a String value to a DynamicValue.

System_CAPS_puboperatorSystem_CAPS_static Implicit(TimeSpan to DynamicValue)

Converts a TimeSpan value to a Dynamic Value.

System_CAPS_puboperatorSystem_CAPS_static Inequality(DynamicValue, DynamicValue)

Specifies whether the two DynamicValue object are not equal.

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable<KeyValuePair<String, DynamicValue>>.GetEnumerator()

System_CAPS_pubinterfaceSystem_CAPS_privmethod 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