FileContext.GetContext<T> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取上下文,假设应为类型
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
上下文强制转换类型