SALES: 1-800-867-1380
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DynamicValue Class

Represents a dynamic data structure for supporting nested sets of key-value pairs in workflow.

System.Object
  Microsoft.Activities.DynamicValue

Namespace:  Microsoft.Activities
Assembly:  Microsoft.Activities (in Microsoft.Activities.dll)

[DefaultMemberAttribute("Item")]
[DataContractAttribute]
public sealed class DynamicValue : ICollection<DynamicValue>, 
	IEnumerable<DynamicValue>, IDictionary<string, DynamicValue>, ICollection<KeyValuePair<string, DynamicValue>>, 
	IEnumerable<KeyValuePair<string, DynamicValue>>, IEnumerable

The DynamicValue type exposes the following members.

  NameDescription
Public methodDynamicValue()Initializes a new instance of the DynamicValue class with default value.
Public methodDynamicValue(Boolean)Initializes a new instance of the DynamicValue class with a Boolean value.
Public methodDynamicValue(DateTime)Initializes a new instance of the DynamicValue class with a DateTime value.
Public methodDynamicValue(Double)Initializes a new instance of the DynamicValue class with a Double value.
Public methodDynamicValue(Guid)Initializes a new instance of the DynamicValue class with a GUID value.
Public methodDynamicValue(Int32)Initializes a new instance of the DynamicValue class with an Int32 value.
Public methodDynamicValue(Int64)Initializes a new instance of the DynamicValue class with an Int64 value.
Public methodDynamicValue(String)Initializes a new instance of the DynamicValue class with a String value.
Public methodDynamicValue(TimeSpan)Initializes a new instance of the DynamicValue class with a TimeSpan value.
Top

  NameDescription
Public propertyCountGets the number of child items in the DynamicValue.
Public propertyIsReadOnlyGets a value that indicates whether the DynamicValue is read only.
Public propertyItem[Int32]Gets or sets an item by ID.
Public propertyItem[String]Gets or sets an item by name.
Public propertyKeysGets the collection of keys for the dynamic values.
Public propertyValuesGets the collection of values for this instance.
Top

  NameDescription
Public methodAdd(KeyValuePair<String, DynamicValue>)Adds a DynamicValue as a child item.
Public methodAdd(DynamicValue)Adds a DynamicValue as a child item.
Public methodAdd(String, DynamicValue)Adds a DynamicValue with specific key and value.
Public methodClearClears the DynamicValue.
Public methodContains(KeyValuePair<String, DynamicValue>)Determines whether the DynamicValue contains a target item.
Public methodContains(DynamicValue)Determines whether the DynamicValue contains a target item.
Public methodContainsKeySpecifies whether the DynamicValue contains a specific key.
Public methodCopyTo(KeyValuePair<String, DynamicValue>[], Int32)Copies the DynamicValue into an array.
Public methodCopyTo(DynamicValue[], Int32)Copies the DynamicValue into an array.
Public methodEqualsSpecifies whether the DynamicValue object is the same as another object. (Overrides Object.Equals(Object).)
Public methodGetEnumeratorGets an enumerator that iterates through the DynamicValue.
Public methodGetHashCodeGets the hash code associated with DynamicValue. (Overrides Object.GetHashCode().)
Public methodGetType (Inherited from Object.)
Public methodStatic memberParseParses the string into a DynamicValue.
Public methodRemove(KeyValuePair<String, DynamicValue>)Removes an item from a DynamicValue.
Public methodRemove(String)Removes an item from a DynamicValue using the specified key.
Public methodRemove(DynamicValue)Removes an item from a DynamicValue.
Public methodToStringReturns a string representation of the DynamicValue. (Overrides Object.ToString().)
Public methodTryGetValueGets the value associated with the specified key.
Top

  NameDescription
Public operatorStatic memberEqualitySpecifies whether the two DynamicValue object is equal.
Public operatorStatic memberImplicit(Boolean to DynamicValue)Casts a Boolean value to a DynamicValue.
Public operatorStatic memberImplicit(DateTime to DynamicValue)Casts a DateTime value to a DynamicValue.
Public operatorStatic memberImplicit(Double to DynamicValue)Casts a Double value to a DynamicValue.
Public operatorStatic memberImplicit(Guid to DynamicValue)Casts a GUID value to a DynamicValue.
Public operatorStatic memberImplicit(Int32 to DynamicValue)Casts an Int32 value to a DynamicValue.
Public operatorStatic memberImplicit(Int64 to DynamicValue)Converts an Int64 value to a Dynamic Value.
Public operatorStatic memberImplicit(String to DynamicValue)Casts a String value to a DynamicValue.
Public operatorStatic memberImplicit(TimeSpan to DynamicValue)Converts a TimeSpan value to a Dynamic Value.
Public operatorStatic memberImplicit(DynamicValue to String)Converts a dynamic value to a String value.
Public operatorStatic memberImplicit(DynamicValue to TimeSpan)Converts a dynamic value to a TimeSpan value.
Public operatorStatic memberImplicit(DynamicValue to Guid)Converts a dynamic value to a Guid value.
Public operatorStatic memberImplicit(DynamicValue to Double)Converts a dynamic value to a Double value.
Public operatorStatic memberImplicit(DynamicValue to DateTime)Converts a dynamic value to a DateTime value.
Public operatorStatic memberImplicit(DynamicValue to Int32)Converts a dynamic value to an Int32 value.
Public operatorStatic memberImplicit(DynamicValue to Boolean)Casts a dynamic value into a Boolean Value.
Public operatorStatic memberInequalitySpecifies whether the two DynamicValue object are not equal.
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable<KeyValuePair<String, DynamicValue>>.GetEnumeratorReturns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorGets an enumerator that iterates through the DynamicValue.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft