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 호출을 반환하는 경우 웹 페치가 만들어집니다. FeedResourceResponse 없이 반환하는 경우 공급자는 헤더 컬렉션을 수정할 수 있습니다. 그러면 웹 페치에서 사용됩니다.
생성자
FeedResourceResponse(IRandomAccessStreamReference, String, Int32) |
FeedResourceResponse 클래스의 새 instance 초기화합니다. |
속성
Content |
요청된 리소스가 포함된 콘텐츠 스트림을 가져옵니다. |
Headers |
피드 공급자가 웹 요청에서 반환했을 수 있는 헤더 값의 선택적 사전을 가져오거나 설정합니다. |
ReasonPhrase |
사용자가 마주보고 있지 않은 결과에 대한 텍스트 설명을 가져옵니다. |
StatusCode |
응답의 HTTP 상태 코드를 가져옵니다. |
적용 대상
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기