İngilizce dilinde oku

Aracılığıyla paylaş


INamedServiceProvider<TService>.GetService(String) Method

Definition

Gets the service object with the specified name.

C#
public TService? GetService(string name);

Parameters

name
String

The name of the service object.

Returns

TService

The object.

Remarks

This method returns the latest TService registered under the name.

Applies to

Ürün Sürümler
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)