語言

PublishServiceCallback<TServiceType> 代理人

定義

一個通用代理,引用一個會發佈服務實例的方法。

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

要出版的服務類型。

傳回值

TServiceType

這是已發表服務的實例。

擴充方法

名稱 Description
GetMethodInfo(Delegate)

取得一個代表指定代理所代表方法的物件。

適用於