PhysicalFileProvider 构造函数

定义

重载

PhysicalFileProvider(String)

在给定的根目录初始化 PhysicalFileProvider 的新实例。

PhysicalFileProvider(String, ExclusionFilters)

在给定的根目录初始化 PhysicalFileProvider 的新实例。

PhysicalFileProvider(String)

Source:
PhysicalFileProvider.cs
Source:
PhysicalFileProvider.cs
Source:
PhysicalFileProvider.cs

在给定的根目录初始化 PhysicalFileProvider 的新实例。

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)

参数

root
String

根目录。 这应该是一个绝对路径。

适用于

PhysicalFileProvider(String, ExclusionFilters)

Source:
PhysicalFileProvider.cs
Source:
PhysicalFileProvider.cs
Source:
PhysicalFileProvider.cs

在给定的根目录初始化 PhysicalFileProvider 的新实例。

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)

参数

root
String

根目录。 这应该是一个绝对路径。

filters
ExclusionFilters

指定要排除的文件或目录。

适用于