TextBlock.IServiceProvider.GetService(Type) 方法

定义

此方法支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,不能在代码中直接使用。This method supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

 virtual System::Object ^ System.IServiceProvider.GetService(Type ^ serviceType) = IServiceProvider::GetService;
object IServiceProvider.GetService (Type serviceType);
Function GetService (serviceType As Type) As Object Implements IServiceProvider.GetService

参数

serviceType
Type

一个对象,它指定要获取的服务对象的类型。An object that specifies the type of service object to get.

返回

serviceType 类型的服务对象;如果没有 serviceType 类型的服务对象,则为 nullA service object of type serviceType, or null if there is no service object of type serviceType.

实现

适用于