ServiceContainer.DefaultServices 屬性

定義

取得 ServiceContainer 直接實作的預設服務。Gets the default services implemented directly by ServiceContainer.

protected:
 virtual property cli::array <Type ^> ^ DefaultServices { cli::array <Type ^> ^ get(); };
protected virtual Type[] DefaultServices { get; }
member this.DefaultServices : Type[]
Protected Overridable ReadOnly Property DefaultServices As Type()

屬性值

Type[]

預設服務。The default services.

備註

這個屬性會傳回直接在這個 IServiceContainer上執行的預設服務。This property returns the default services that are implemented directly on this IServiceContainer. 這個屬性的預設實值是傳回 IServiceContainerServiceContainer 類型。the default implementation of this property is to return the IServiceContainer and ServiceContainer types. 您可以覆寫這個屬性,並傳回您自己的類型,並修改 GetService的預設行為。You may override this property and return your own types, modifying the default behavior of GetService.

適用於