ValidationContext.ServiceContainer ValidationContext.ServiceContainer ValidationContext.ServiceContainer ValidationContext.ServiceContainer Property

Definition

Gets the validation services container.

public:
 property System::ComponentModel::Design::IServiceContainer ^ ServiceContainer { System::ComponentModel::Design::IServiceContainer ^ get(); };
public System.ComponentModel.Design.IServiceContainer ServiceContainer { get; }
member this.ServiceContainer : System.ComponentModel.Design.IServiceContainer
Public ReadOnly Property ServiceContainer As IServiceContainer

Property Value

Remarks

The ServiceContainer property is used for getting services during validation.

If the IServiceProvider provider that is specified in the constructor implements the IServiceContainer interface, the provider is used to initialize the ServiceContainer property. Otherwise the ServiceContainer property is initialized to an empty container.

Applies to

See also