ActivityMetadata.GetVariablesWithReflection Method ()

.NET Framework (current version)

Returns a collection of variables using reflection.

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

public Collection<Variable> GetVariablesWithReflection()

Return Value

Type: System.Collections.ObjectModel.Collection<Variable>

A collection of variables.

This method uses an activity’s TypeDescriptor to examine all public properties of type Variable, or IList<T> or ICollection<T> where T derives from Variable, and returns them in a collection.

.NET Framework
Available since 4.0
Return to top