Edit

Share via


ValidationManager Class

Definition

Caution

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

Enables the sharing of contextual information, such as property validation, parent activity, and so on, across validators during the compilation process.

public ref class ValidationManager sealed : IServiceProvider
public sealed class ValidationManager : IServiceProvider
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ValidationManager : IServiceProvider
type ValidationManager = class
    interface IServiceProvider
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ValidationManager = class
    interface IServiceProvider
Public NotInheritable Class ValidationManager
Implements IServiceProvider
Inheritance
ValidationManager
Attributes
Implements

Remarks

Note

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

For a list of initial property values regarding an instance of the ValidationManager class, see the ValidationManager constructor.

Constructors

ValidationManager(IServiceProvider)

Initializes a new instance of the ValidationManager class using the identified service provider.

ValidationManager(IServiceProvider, Boolean)

Initializes a new instance of the ValidationManager class using the identified service provider and indicates whether child Activity classes should be validated.

Properties

Context

Gets a value that indicates the stack object that a validator can use to make information available to nested validators.

ValidateChildActivities

Gets a value that indicates whether child Activity classes should be validated.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetService(Type)

Gets the service object of the specified Type.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetValidators(Type)

Returns an array of validators that are associated with a type by looking up the validator attribute applied on the type.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

GetKeyedService<T>(IServiceProvider, Object)

Get service of type T from the IServiceProvider.

GetKeyedServices(IServiceProvider, Type, Object)

Get an enumeration of services of type serviceType from the IServiceProvider.

GetKeyedServices<T>(IServiceProvider, Object)

Get an enumeration of services of type T from the IServiceProvider.

GetRequiredKeyedService(IServiceProvider, Type, Object)

Get service of type serviceType from the IServiceProvider.

GetRequiredKeyedService<T>(IServiceProvider, Object)

Get service of type T from the IServiceProvider.

CreateAsyncScope(IServiceProvider)

Creates a new AsyncServiceScope that can be used to resolve scoped services.

CreateScope(IServiceProvider)

Creates a new IServiceScope that can be used to resolve scoped services.

GetRequiredService(IServiceProvider, Type)

Get service of type serviceType from the IServiceProvider.

GetRequiredService<T>(IServiceProvider)

Get service of type T from the IServiceProvider.

GetService<T>(IServiceProvider)

Get service of type T from the IServiceProvider.

GetServices(IServiceProvider, Type)

Get an enumeration of services of type serviceType from the IServiceProvider.

GetServices<T>(IServiceProvider)

Get an enumeration of services of type T from the IServiceProvider.

GetFakeLogCollector(IServiceProvider)

Gets the object that collects log records sent to the fake logger.

GetFakeRedactionCollector(IServiceProvider)

Gets the fake redactor collector instance from the dependency injection container.

Applies to