Constraint Class

.NET Framework (current version)
 

Handles the validation constraint that is used for validating an activity.

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

System.Object
  System.Activities.Activity
    System.Activities.NativeActivity
      System.Activities.Validation.Constraint
        System.Activities.Validation.Constraint<T>

public abstract class Constraint : NativeActivity

NameDescription
System_CAPS_protpropertyCacheId

Gets the identifier of the cache that is unique within the scope of the workflow definition.(Inherited from Activity.)

System_CAPS_protpropertyCanInduceIdle

Gets or sets a value that indicates whether the activity can cause the workflow to become idle.(Inherited from NativeActivity.)

System_CAPS_protpropertyConstraints

Gets a collection of Constraint activities that can be configured to provide validation for the Activity.(Inherited from Activity.)

System_CAPS_pubpropertyDisplayName

Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking.(Inherited from Activity.)

System_CAPS_pubpropertyId

Gets an identifier that is unique in the scope of the workflow definition.(Inherited from Activity.)

System_CAPS_protpropertyImplementation

The execution logic of the activity.(Inherited from NativeActivity.)

System_CAPS_protpropertyImplementationVersion

Gets or sets the implementation version of the activity.(Inherited from NativeActivity.)

NameDescription
System_CAPS_protmethodAbort(NativeActivityAbortContext)

When implemented in a derived class, takes actions in response to the activity being aborted.(Inherited from NativeActivity.)

System_CAPS_pubmethodSystem_CAPS_staticAddValidationError(NativeActivityContext, ValidationError)

Adds a validation error to a list of run-time validation errors that are attached to the execution context.

System_CAPS_protmethodCacheMetadata(ActivityMetadata)

Not implemented. Use the CacheMetadata method instead.(Inherited from NativeActivity.)

System_CAPS_protmethodCacheMetadata(NativeActivityMetadata)

Creates a NativeActivityMetadata object that contains runtime arguments for the workflow validation process.(Overrides NativeActivity.CacheMetadata(NativeActivityMetadata).)

System_CAPS_protmethodCancel(NativeActivityContext)

When implemented in a derived class, runs logic to cause graceful early completion of the activity.(Inherited from NativeActivity.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodExecute(NativeActivityContext)

Invokes the process that validates an activity.(Overrides NativeActivity.Execute(NativeActivityContext).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnCreateDynamicUpdateMap(NativeActivityUpdateMapMetadata, Activity)

Raises an event when creating a map for the dynamic update.(Inherited from NativeActivity.)

System_CAPS_protmethodOnCreateDynamicUpdateMap(UpdateMapMetadata, Activity)

Raises an event when creating a map for the dynamic update.(Inherited from NativeActivity.)

System_CAPS_protmethodOnExecute(NativeActivityContext, Object, ValidationContext)

When implemented by a derived class, validates the specified object using the specified native activity and validation contexts.

System_CAPS_pubmethodShouldSerializeDisplayName()

Indicates whether the DisplayName property should be serialized.(Inherited from Activity.)

System_CAPS_pubmethodToString()

Returns a String that contains the Id and DisplayName of the Activity.(Inherited from Activity.)

System_CAPS_protmethodUpdateInstance(NativeActivityUpdateContext)

Updates the instance of NativeActivity.(Inherited from NativeActivity.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticValidationErrorListPropertyName

The name for an activity constraint property that is a list of workflow run-time validation errors.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: