FeatureReferences<TCache>.Fetch 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Fetch<TFeature,TState>(TFeature, TState, Func<TState,TFeature>) |
此 API 是 ASP.NET Core基礎結構的一部分,不應由應用程式程式碼參考。 |
Fetch<TFeature>(TFeature, Func<IFeatureCollection,TFeature>) |
此 API 是 ASP.NET Core基礎結構的一部分,不應由應用程式程式碼參考。 |
Fetch<TFeature,TState>(TFeature, TState, Func<TState,TFeature>)
此 API 是 ASP.NET Core基礎結構的一部分,不應由應用程式程式碼參考。
public:
generic <typename TFeature, typename TState>
where TFeature : class TFeature Fetch(TFeature % cached, TState state, Func<TState, TFeature> ^ factory);
public TFeature Fetch<TFeature,TState> (ref TFeature cached, TState state, Func<TState,TFeature> factory) where TFeature : class;
public TFeature? Fetch<TFeature,TState> (ref TFeature? cached, TState state, Func<TState,TFeature?> factory) where TFeature : class;
member this.Fetch : 'Feature * 'State * Func<'State, 'Feature (requires 'Feature : null)> -> 'Feature (requires 'Feature : null)
Public Function Fetch(Of TFeature As Class, TState As Class) (ByRef cached As TFeature, state As TState, factory As Func(Of TState, TFeature)) As TFeature
類型參數
- TFeature
- TState
參數
- cached
- TFeature
- state
- TState
- factory
- Func<TState,TFeature>
傳回
TFeature
適用於
Fetch<TFeature>(TFeature, Func<IFeatureCollection,TFeature>)
此 API 是 ASP.NET Core基礎結構的一部分,不應由應用程式程式碼參考。
public:
generic <typename TFeature>
where TFeature : class TFeature Fetch(TFeature % cached, Func<Microsoft::AspNetCore::Http::Features::IFeatureCollection ^, TFeature> ^ factory);
public TFeature Fetch<TFeature> (ref TFeature cached, Func<Microsoft.AspNetCore.Http.Features.IFeatureCollection,TFeature> factory) where TFeature : class;
public TFeature? Fetch<TFeature> (ref TFeature? cached, Func<Microsoft.AspNetCore.Http.Features.IFeatureCollection,TFeature?> factory) where TFeature : class;
member this.Fetch : 'Feature * Func<Microsoft.AspNetCore.Http.Features.IFeatureCollection, 'Feature (requires 'Feature : null)> -> 'Feature (requires 'Feature : null)
Public Function Fetch(Of TFeature As Class) (ByRef cached As TFeature, factory As Func(Of IFeatureCollection, TFeature)) As TFeature
類型參數
- TFeature
參數
- cached
- TFeature
- factory
- Func<IFeatureCollection,TFeature>
傳回
TFeature