ControlBuilder.SetServiceProvider(IServiceProvider) 方法

定义

设置此 ControlBuilder 对象的服务对象。Sets the service object for this ControlBuilder object.

public:
 void SetServiceProvider(IServiceProvider ^ serviceProvider);
public void SetServiceProvider (IServiceProvider serviceProvider);
member this.SetServiceProvider : IServiceProvider -> unit
Public Sub SetServiceProvider (serviceProvider As IServiceProvider)

参数

serviceProvider
IServiceProvider

表示 IServiceProvider 的服务对象的 ControlBuilderAn IServiceProvider that represents the service object for the ControlBuilder.

适用于

另请参阅