Activity Klasa
Definicja
public ref class Activity abstract
[System.Windows.Markup.ContentProperty("Implementation")]
public abstract class Activity
[<System.Windows.Markup.ContentProperty("Implementation")>]
type Activity = class
Public MustInherit Class Activity
- Dziedziczenie
-
Activity
- Pochodne
- Atrybuty
Przykłady
Poniższy przykład pokazuje prostą implementację Activity klasy pochodnej.The following example shows a simple implementation of an Activity derived class.
Uwagi
Activityjest klasą bazową w hierarchii typów działań.Activity is the base class in the activity type hierarchy. Wszystkie inne typy działań, takie jak,,, CodeActivity NativeActivity AsyncCodeActivity DynamicActivity i ActivityWithResult pochodne od tej klasy.All other activity types such as CodeActivity, NativeActivity, AsyncCodeActivity, DynamicActivity, and ActivityWithResult derive from this class.
Konstruktory
Activity() |
Inicjuje nowe wystąpienie klasy Activity.Initializes a new instance of the Activity class. |
Właściwości
CacheId |
Pobiera identyfikator pamięci podręcznej, która jest unikatowa w zakresie definicji przepływu pracy.Gets the identifier of the cache that is unique within the scope of the workflow definition. |
Constraints |
Pobiera kolekcję Constraint działań, które można skonfigurować w celu zapewnienia weryfikacji dla Activity .Gets a collection of Constraint activities that can be configured to provide validation for the Activity. |
DisplayName |
Pobiera lub ustawia opcjonalną przyjazną nazwę, która jest używana do debugowania, sprawdzania poprawności, obsługi wyjątków i śledzenia.Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking. |
Id |
Pobiera identyfikator, który jest unikatowy w zakresie definicji przepływu pracy.Gets an identifier that is unique in the scope of the workflow definition. |
Implementation |
Pobiera lub ustawia delegata, który zwraca wartość zawierającą Activity logikę wykonania.Gets or sets the delegate that returns an Activity that contains the execution logic. |
ImplementationVersion |
Pobiera lub ustawia wersję używanej implementacji.Gets or sets the version of the implementation used. |
Metody
CacheMetadata(ActivityMetadata) |
Tworzy i weryfikuje opis argumentów działania, zmiennych, działań podrzędnych i delegatów działań.Creates and validates a description of the activity's arguments, variables, child activities, and activity delegates. |
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.Determines whether the specified object is equal to the current object. (Odziedziczone po Object) |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity) |
Wywołuje zdarzenie podczas tworzenia mapy aktualizacji dynamicznej.Raises an event when creating dynamic update map. |
ShouldSerializeDisplayName() |
Wskazuje, czy DisplayName Właściwość powinna być serializowana.Indicates whether the DisplayName property should be serialized. |
ToString() |
Zwraca element String , który zawiera Id i DisplayName Activity .Returns a String that contains the Id and DisplayName of the Activity. |