PageConventionCollection.AddFolderApplicationModelConvention Metodo

Definizione

Crea e aggiunge un oggetto IPageApplicationModelConvention che richiama un'azione in PageApplicationModel istanze per tutte le pagine nella cartella specificata.

public:
 Microsoft::AspNetCore::Mvc::ApplicationModels::IPageApplicationModelConvention ^ AddFolderApplicationModelConvention(System::String ^ folderPath, Action<Microsoft::AspNetCore::Mvc::ApplicationModels::PageApplicationModel ^> ^ action);
public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention AddFolderApplicationModelConvention (string folderPath, Action<Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel> action);
member this.AddFolderApplicationModelConvention : string * Action<Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel> -> Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention
Public Function AddFolderApplicationModelConvention (folderPath As String, action As Action(Of PageApplicationModel)) As IPageApplicationModelConvention

Parametri

folderPath
String

Percorso della cartella relativa alla radice razor Pages. Ad esempio: /Users/

Restituisce

IPageApplicationModelConventionAggiunta di .

Si applica a