UndoEngine.GetRequiredService(Type) 方法

定義

取得所要求的服務。

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

參數

serviceType
Type

要擷取的服務類型。

傳回

要求的服務 (如果找到)。

例外狀況

serviceTypenull

需要 serviceType,但找不到。 如果您已移除這項服務,請務必提供取代服務。

適用於