ProtocolSocketGetServiceT Method |
Returns an object that implements a specific API, or throws an exception.
For example, an IO API such as IPacketIOService.
Namespace:
Demo3D.Net
Assembly:
Demo3D.IO (in Demo3D.IO.dll) Version: 11.0.0.7658
Syntaxpublic T GetService<T>(
ServiceBindingFlags bindingFlags = ServiceBindingFlags.Default
)
where T : class
Parameters
- bindingFlags (Optional)
- Type: Demo3D.NetServiceBindingFlags
Flags to direct the search for the requested service.
Type Parameters
- T
- The service to find.
Return Value
Type:
TThe service implementation.
See Also