PublishServiceCallback<TServiceType> 委托

定义

一个泛型委托,该委托引用发布服务实例的方法。A generic delegate that references a method that publishes an instance of a service.

generic <typename TServiceType>
public delegate TServiceType PublishServiceCallback();
public delegate TServiceType PublishServiceCallback<TServiceType>();
type PublishServiceCallback<'ServiceType> = delegate of unit -> 'ServiceType
Public Delegate Function PublishServiceCallback(Of TServiceType)() As TServiceType 

类型参数

TServiceType

要发布的服务的类型。The type of the service to publish.

返回值

TServiceType

发布的服务的实例。An instance of the published service.

继承
PublishServiceCallback<TServiceType>

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于