Redigera

Dela via


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

The validation services container.

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