Export (0) Print
Expand All

CodeActivityMetadata Structure

Represents the set of arguments that a configured CodeActivity introduces to the execution environment.

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

public struct CodeActivityMetadata

The CodeActivityMetadata type exposes the following members.

  NameDescription
Public propertyEnvironmentGets the activity’s LocationReferenceEnvironment of 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 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 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 methodGetTypeGets the Type of the current instance. (Inherited from Object.)
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 methodSetValidationErrorsCollectionAdds the specified collection of validation errors to the metadata’s collection of validation errors.
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

.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.

Community Additions

ADD
Show:
© 2014 Microsoft