ActivityDesigner.GetService(Type) 方法

定義

嘗試從設計模式網站取得與設計師相關活動所需的指定服務類型。

protected:
 System::Object ^ GetService(Type ^ serviceType);
protected object GetService(Type serviceType);
member this.GetService : Type -> obj
Protected Function GetService (serviceType As Type) As Object

參數

serviceType
Type

該申請的服務類型。

傳回

若服務無法解析,則是一個實作所請求服務的物件,或是空參考(Nothing in Visual Basic)。

適用於