This documentation is archived and is not being maintained.

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 struct ActivityMetadata

The ActivityMetadata type exposes the following members.

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.

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 methodAddImportedChildAdds the specified activity to the metadata’s list of imported child activities.
Public methodAddImportedDelegateAdds 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 methodAddVariableAdds 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).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from 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.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
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.)

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.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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.