Export (0) Print
Expand All

NativeActivityMetadata Structure

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

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

public struct NativeActivityMetadata

The NativeActivityMetadata 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 methodAddChild(Activity)Adds the specified activity to the metadata’s list of child activities.
Public methodAddChild(Activity, Object)Adds the specified activity to the metadata’s list of child activities.
Public methodAddDefaultExtensionProvider<T>Adds the specified extension provider to the collection of default extension providers for the activity.
Public methodAddDelegate(ActivityDelegate)Adds the specified delegate to the metadata’s list of delegates.
Public methodAddDelegate(ActivityDelegate, Object)Adds the specified delegate to the metadata’s list of delegates.
Public methodAddImplementationChildAdds the specified activity to the metadata’s list of implementation activities.
Public methodAddImplementationDelegateAdds the specified delegate to the metadata’s list of implementation delegates.
Public methodAddImplementationVariableAdds the specified variable to the metadata’s collection of implementation variables.
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 methodGetChildrenWithReflectionReturns a collection of child activities using reflection.
Public methodGetDelegatesWithReflectionReturns a collection of delegates 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.)
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 methodSetChildrenCollectionAdds the specified collection as child activities of the activity.
Public methodSetDelegatesCollectionAdds the specified collection as delegates of the activity.
Public methodSetImplementationChildrenCollectionAdds the specified collection as implementation child activities of the activity.
Public methodSetImplementationDelegatesCollectionAdds the specified collection as implementation delegates of the activity.
Public methodSetImplementationVariablesCollectionAdds the specified collection as implementation variables of the activity.
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, 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.
Show:
© 2014 Microsoft