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,表示 ControlBuilder 的服務物件。An IServiceProvider that represents the service object for the ControlBuilder.

適用於

另請參閱