ValidationContext::ServiceContainer Property

.NET Framework (current version)
 

Gets the validation services container.

Namespace:   System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public:
property IServiceContainer^ ServiceContainer {
	IServiceContainer^ get();
}

Property Value

Type: System.ComponentModel.Design::IServiceContainer^

The validation services container.

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.

.NET Framework
Available since 4.0
Return to top
Show: