ActivityContext.GetExtension<T> 方法

定义

返回指定类型的扩展。

public:
generic <typename T>
 where T : class T GetExtension();
public T GetExtension<T> () where T : class;
member this.GetExtension : unit -> 'T (requires 'T : null)
Public Function GetExtension(Of T As Class) () As T

类型参数

T

要检索的扩展的类型。

返回

T

指定类型的扩展名(若存在);否则为 null

适用于