NestedContainer.GetService(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.