FileContext.GetContext<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the context assuming a type expected
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;
public T? GetContext<T> () where T : class;
member this.GetContext : unit -> 'T (requires 'T : null)
Public Function GetContext(Of T As Class) () As T
Type Parameters
- T
Type expected
Returns
T
The context casted as the type