다음을 통해 공유


ViewEngineResult.EnsureSuccessful(IEnumerable<String>) 메서드

정의

성공 ViewEngineResult 했는지 확인합니다.

public:
 Microsoft::AspNetCore::Mvc::ViewEngines::ViewEngineResult ^ EnsureSuccessful(System::Collections::Generic::IEnumerable<System::String ^> ^ originalLocations);
public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult EnsureSuccessful (System.Collections.Generic.IEnumerable<string> originalLocations);
public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult EnsureSuccessful (System.Collections.Generic.IEnumerable<string>? originalLocations);
member this.EnsureSuccessful : seq<string> -> Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult
Public Function EnsureSuccessful (originalLocations As IEnumerable(Of String)) As ViewEngineResult

매개 변수

originalLocations
IEnumerable<String>

가 인 경우 Success throw InvalidOperationException 된 에 포함할 추가 SearchedLocations 입니다false.

반환

ViewEngineResultSuccess 입니다 true.

예외

이 이면 Success throw됩니다 false.

적용 대상