Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.