.는 'HttpRequest를'에 대한 정의를 포함하지 않는 '에 Params'
error CS1061: 'HttpRequest' does not contain a definition for 'Url' and no extension method 'Url' accepting a first argument of type 'HttpRequest' could be found
같은 일이 Request.Params
으로 발생 : 내 컨트롤러에 Request.Url
를 사용
매번, dotnet run
오류를 출력합니다. .NET documentation에 Params
속성에 대한 getter가 있다고하더라도.
Request.Url
에 대한 해결 방법을 찾을 수있었습니다 : Request.GetUri()
방법을 사용합니다. 그러나 Request.Params
에 대한 대체품을 찾을 수 없습니다.
using System;
using System.Diagnostics;
using area.Models;
using Microsoft.AspNetCore.Identity;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights.AspNetCore.Extensions;
using Microsoft.AspNetCore.Mvc;
using Tweetinvi;
using Tweetinvi.Models;
가 왜 이러한 오류를 얻고있다 : 여기
내using
문입니까? 수정 사항을 알고 있습니까? 그렇지 않으면
Request.Params
을 얻을 수있는 해결 방법이 있습니까?
구체적으로 찾고있는 것은 무엇입니까, Params 컬렉션? – Shyju
https://github.com/linvi/tweetinvi/wiki/Authentication의 Tweetinvi 라이브러리를 사용하려고합니다. 나는 "Request.Params.Get ("oauth_verifier ")'가있는"URL Redirect Authentication "샘플 코드를 실행 중이다. 그래서'Params'의'Get()'메쏘드에 접근하고 싶습니다. –
'Request.Query [ "oauth_verifier"]'시도해 볼 수 있습니다. – Shyju