FileContext.GetContext<T> 方法

定义

获取上下文,假设应为类型

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

类型参数

T

应为类型

返回

T

上下文强制转换类型

适用于