Partilhar via


ViewEngineResult.EnsureSuccessful(IEnumerable<String>) Método

Definição

Verifique se isso ViewEngineResult foi bem-sucedido.

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

Parâmetros

originalLocations
IEnumerable<String>

Adicional SearchedLocations a ser incluído no gerado InvalidOperationException se Success for false.

Retornos

Isso ViewEngineResult se Success for true.

Exceções

Gerado se Success for false.

Aplica-se a