PhysicalFileProvider Constructors

Definition

Overloads

PhysicalFileProvider(String)

Инициализирует новый экземпляр PhysicalFileProvider в указанном корневом каталоге.Initializes a new instance of a PhysicalFileProvider at the given root directory.

PhysicalFileProvider(String, ExclusionFilters)

Инициализирует новый экземпляр PhysicalFileProvider в указанном корневом каталоге.Initializes a new instance of a PhysicalFileProvider at the given root directory.

PhysicalFileProvider(String)

Инициализирует новый экземпляр PhysicalFileProvider в указанном корневом каталоге.Initializes a new instance of a PhysicalFileProvider at the given root directory.

public:
 PhysicalFileProvider(System::String ^ root);
public PhysicalFileProvider (string root);
new Microsoft.Extensions.FileProviders.PhysicalFileProvider : string -> Microsoft.Extensions.FileProviders.PhysicalFileProvider
Public Sub New (root As String)

Parameters

root
String

Корневой каталог.The root directory. Это должен быть абсолютный путь.This should be an absolute path.

PhysicalFileProvider(String, ExclusionFilters)

Инициализирует новый экземпляр PhysicalFileProvider в указанном корневом каталоге.Initializes a new instance of a PhysicalFileProvider at the given root directory.

public:
 PhysicalFileProvider(System::String ^ root, Microsoft::Extensions::FileProviders::Physical::ExclusionFilters filters);
public PhysicalFileProvider (string root, Microsoft.Extensions.FileProviders.Physical.ExclusionFilters filters);
new Microsoft.Extensions.FileProviders.PhysicalFileProvider : string * Microsoft.Extensions.FileProviders.Physical.ExclusionFilters -> Microsoft.Extensions.FileProviders.PhysicalFileProvider
Public Sub New (root As String, filters As ExclusionFilters)

Parameters

root
String

Корневой каталог.The root directory. Это должен быть абсолютный путь.This should be an absolute path.

filters
ExclusionFilters

Указывает, какие файлы или каталоги исключаются.Specifies which files or directories are excluded.

Applies to