ActivityDesigner.GetService(Type) ActivityDesigner.GetService(Type) ActivityDesigner.GetService(Type) ActivityDesigner.GetService(Type) Method

定義

嘗試從與設計工具關聯之活動的設計模式站台,擷取指定的服務類型。Tries to retrieve the specified type of service from the design mode site for the activity associated with the designer.

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 Type Type Type

要求的服務型別。The type of service to request.

傳回

實作要求之服務的物件,如果無法解析服務,則傳回 null 參考 (在 Visual Basic 中為 Nothing)。An object implementing the requested service or a null reference (Nothing in Visual Basic) if the service cannot be resolved.

適用於