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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.