FileContext.GetContext<T> Method

Definition

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

Applies to