WorkflowRuntimeEndpoint.GetService 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.
Overloads
GetService(Type) |
Gets the service object for the specified service type from the list of service objects. |
GetService<T>() |
Gets the service object that corresponds to the service type specified as a template parameter. |
GetService(Type)
Gets the service object for the specified service type from the list of service objects.
public:
System::Object ^ GetService(Type ^ serviceType);
public object GetService (Type serviceType);
member this.GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object
Parameters
- serviceType
- Type
The type of the service whose object must retrieved from the list of objects.
Returns
The service object for the specified service type.
Applies to
GetService<T>()
Gets the service object that corresponds to the service type specified as a template parameter.
public:
generic <typename T>
T GetService();
public T GetService<T> ();
member this.GetService : unit -> 'T
Public Function GetService(Of T) () As T
Type Parameters
- T
The type of the service to get.
Returns
The service object that corresponds to the service type.
Applies to
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk