Partager via


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

Définition

Vérifiez que cela ViewEngineResult a réussi.

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

Paramètres

originalLocations
IEnumerable<String>

Ajout SearchedLocations à inclure dans le levée InvalidOperationException si Success est false.

Retours

Ceci ViewEngineResult si Success a la valeur true.

Exceptions

Levée si Success a la valeur false.

S’applique à