共用方式為


HandleInitializationContext.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

類別的擴充。

適用於