Επεξεργασία

Κοινή χρήση μέσω


NestedContainer.GetService(Type) Method

Definition

Gets the service object of the specified type, if it is available.

protected:
 override System::Object ^ GetService(Type ^ service);
protected override object GetService (Type service);
protected override object? GetService (Type service);
override this.GetService : Type -> obj
Protected Overrides Function GetService (service As Type) As Object

Parameters

service
Type

The Type of the service to retrieve.

Returns

An Object that implements the requested service, or null if the service cannot be resolved.

Remarks

This method overrides the Container.GetService method. This implementation only resolves requests for the INestedContainer and IContainer services.

Applies to

See also