ValidationManager.GetService(Type) 方法

定义

获取指定 Type 的服务对象。Gets the service object of the specified Type.

public:
 virtual System::Object ^ GetService(Type ^ serviceType);
public object GetService (Type serviceType);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object

参数

serviceType
Type

一个对象,它指定要检索的服务对象的 TypeAn object that specifies the Type of service object to retrieve.

返回

Object

类型为 serviceType 的服务对象;如果不存在类型为 Nothing 的服务对象,则为空引用(在 Visual Basic 中为 serviceType)。A service object of type serviceType, or a null reference (Nothing in Visual Basic) if there is no service object of type serviceType.

实现

适用于