FeedResourceResponse クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
IFeedResourceProvider.OnResourceRequested) の実装を通じて受信したリソース要求への応答を表します。
public ref class FeedResourceResponse sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.Widgets.Feeds.Providers.IFeedResourceResponseFactory, 327680, "Microsoft.Windows.Widgets.WidgetContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Widgets.WidgetContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FeedResourceResponse final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.Widgets.Feeds.Providers.IFeedResourceResponseFactory), 327680, "Microsoft.Windows.Widgets.WidgetContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Widgets.WidgetContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class FeedResourceResponse
function FeedResourceResponse(content, reasonPhrase, statusCode)
Public NotInheritable Class FeedResourceResponse
- 継承
- 属性
注釈
フィード プロバイダーは 、FeedResourceRequestedArgs.Request プロパティを使用してリソース要求にアクセスし、 FeedResourceRequestedArgs.Response プロパティを、リソースへのストリームを含む FeedResourceResponse に設定して返すことができます。
評価またはリソースがすぐに使用できない場合、プロバイダーは FeedResourceRequestedArgs.GetDeferral を呼び出して遅延を要求し、バックグラウンド タスクを開始し、リソースが使用可能になったら遅延を完了する必要があります。
プロバイダーが FeedResourceRequestedArgs.Response プロパティを設定せずに OnResourceRequested) 呼び出し を返した 場合、Web フェッチが行われます。 FeedResourceResponse を指定せずに返す場合、プロバイダーは Headers コレクションを変更できます。このコレクションは Web フェッチで使用されます。
コンストラクター
| 名前 | 説明 |
|---|---|
| FeedResourceResponse(IRandomAccessStreamReference, String, Int32) |
FeedResourceResponse クラスの新しいインスタンスを初期化します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| Content |
要求されたリソースを含むコンテンツのストリームを取得します。 |
| Headers |
フィード プロバイダーによって Web 要求から返された可能性があるヘッダー値の省略可能なディクショナリを取得または設定します。 |
| ReasonPhrase |
ユーザーが直面していない結果のテキストの説明を取得します。 |
| StatusCode |
応答の HTTP 状態コードを取得します。 |