다음을 통해 공유


FeedResourceResponse 클래스

정의

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
상속
Object Platform::Object IInspectable FeedResourceResponse
특성

설명

피드 공급자는 FeedResourceRequestedArgs.Request 속성을 통해 리소스 요청에 액세스하고 FeedResourceRequestedArgs.Response 속성을 리소스에 대한 스트림이 포함된 FeedResourceResponse 로 설정한 다음 반환할 수 있습니다.

평가 또는 리소스를 즉시 사용할 수 없는 경우 공급자는 FeedResourceRequestedArgs.GetDeferral을 호출하여 지연을 요청하고, 백그라운드 작업을 시작하고, 리소스를 사용할 수 있을 때 지연을 완료해야 합니다.

공급자가 FeedResourceRequestedArgs.Response 속성을 설정하지 않고 OnResourceRequested 호출을 반환하는 경우 웹 페치가 만들어집니다. FeedResourceResponse 없이 반환하는 경우 공급자는 헤더 컬렉션을 수정할 수 있습니다. 그러면 웹 페치에서 사용됩니다.

생성자

FeedResourceResponse(IRandomAccessStreamReference, String, Int32)

FeedResourceResponse 클래스의 새 instance 초기화합니다.

속성

Content

요청된 리소스가 포함된 콘텐츠 스트림을 가져옵니다.

Headers

피드 공급자가 웹 요청에서 반환했을 수 있는 헤더 값의 선택적 사전을 가져오거나 설정합니다.

ReasonPhrase

사용자가 마주보고 있지 않은 결과에 대한 텍스트 설명을 가져옵니다.

StatusCode

응답의 HTTP 상태 코드를 가져옵니다.

적용 대상