ActivityMetadata Structure

Represents the set of arguments, child activities, variables, and delegates that a configured Activity introduces to the execution environment.

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

public value class ActivityMetadata

The ActivityMetadata type exposes the following members.

  NameDescription
Public propertyEnvironmentGets the activity’s LocationReferenceEnvironment of arguments, variables, delegate arguments, or symbols introduced by a SymbolResolver.
Public propertyHasViolationsGets a value that indicates whether there are any validation errors in the metadata.
Top

  NameDescription
Public methodAddArgumentAdds an argument to the collection of arguments of an activity.
Public methodAddDefaultExtensionProvider<T>Adds the specified extension provider to the collection of default extension providers for the activity.
Public methodAddImportedChild(Activity)Adds the specified activity to the metadata’s list of imported child activities.
Public methodAddImportedChild(Activity, Object)Adds the specified activity to the metadata’s list of imported child activities.
Public methodAddImportedDelegate(ActivityDelegate)Adds the specified delegate to the metadata’s list of imported delegates.
Public methodAddImportedDelegate(ActivityDelegate, Object)Adds the specified delegate to the metadata’s list of imported delegates.
Public methodAddValidationError(String)Adds a validation error to the metadata’s collection of validation errors using the specified description.
Public methodAddValidationError(ValidationError)Adds the specified validation error to the metadata’s collection of validation errors.
Public methodAddVariable(Variable)Adds the specified variable to the metadata’s collection of variables.
Public methodAddVariable(Variable, Object)Adds the specified variable to the metadata’s collection of variables.
Public methodBindBinds the specified Argument to the specified RuntimeArgument.
Public methodEqualsDetermines whether the specified object is equal to this metadata instance. (Overrides ValueType::Equals(Object).)
Public methodGetArgumentsWithReflectionReturns a collection of arguments obtained by using reflection.
Public methodGetHashCodeReturns a unique identifier for this metadata instance. (Overrides ValueType::GetHashCode().)
Public methodGetImportedChildrenWithReflectionReturns a collection of imported child activities using reflection.
Public methodGetImportedDelegatesWithReflectionReturns a collection of delegates using reflection.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetVariablesWithReflectionReturns a collection of variables using reflection.
Public methodRequireExtension(Type)Specifies that the activity requires an extension of the specified type at runtime.
Public methodRequireExtension<T>()Specifies that the activity requires an extension of the specified generic type at runtime.
Public methodSetArgumentsCollectionAdds the specified collection of arguments to the activity’s arguments.
Public methodSetImportedChildrenCollectionAdds the specified collection as imported child activities of the activity.
Public methodSetImportedDelegatesCollectionAdds the specified collection as imported delegates of the activity.
Public methodSetValidationErrorsCollectionAdds the specified collection of validation errors to the metadata’s collection of validation errors.
Public methodSetVariablesCollectionAdds the specified collection of variables to the activity’s variables.
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

  NameDescription
Public operatorStatic memberEqualityReturns a value that indicates whether the two specified metadata instances are equal.
Public operatorStatic memberInequalityReturns a value that indicates whether the two specified metadata instances are not equal.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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
Show:
© 2014 Microsoft