Export (0) Print
Expand All

ValidationContext.GetService Method

Retrieves an instance of the service to use during validation.

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

public Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type
The type of the service to use during validation.

Return Value

Type: System.Object
An instance of that service or null if the service is not available.

Implements

IServiceProvider.GetService(Type)

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft