Share via


PhysicalFileProvider Constructors

Definition

Overloads

PhysicalFileProvider(String)

Initializes a new instance of a PhysicalFileProvider at the given root directory.

PhysicalFileProvider(String, ExclusionFilters)

Initializes a new instance of a PhysicalFileProvider at the given root directory.

PhysicalFileProvider(String)

Source:
PhysicalFileProvider.cs
Source:
PhysicalFileProvider.cs

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.

Applies to

PhysicalFileProvider(String, ExclusionFilters)

Source:
PhysicalFileProvider.cs
Source:
PhysicalFileProvider.cs

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