WorkflowView.GetService(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定類型的服務物件(若可用)。
protected:
override System::Object ^ GetService(Type ^ serviceType);
protected override object GetService(Type serviceType);
override this.GetService : Type -> obj
Protected Overrides Function GetService (serviceType As Type) As Object
參數
傳回
若 serviceType 為 typeof(CommandID),則 GetService 回傳特定 CommandID;否則,GetService 會回傳實作所請求服務的 Object,若服務無法解析,則回傳空參考(Nothing 於 Visual Basic)。
備註
GetService 回傳實作所請求的服務,若服務無法解析則回傳 Object 空參考(Nothing)。