CompositeDirectoryContents Class¶
Represents the result of a call composition of Microsoft.Extensions.FileProviders.IFileProvider.GetDirectoryContents(System.String)
for a list of Microsoft.Extensions.FileProviders.IFileProvider
and a path.
- Namespace
Microsoft.Extensions.FileProviders.Composite
- Assemblies
- Microsoft.Extensions.FileProviders.Composite
Syntax¶
public class CompositeDirectoryContents : IDirectoryContents, IEnumerable<IFileInfo>, IEnumerable
-
class
Microsoft.Extensions.FileProviders.Composite.
CompositeDirectoryContents
Constructors¶
-
CompositeDirectoryContents
(System.Collections.Generic.IList<Microsoft.Extensions.FileProviders.IFileProvider>, System.String)¶ Creates a new instance of
Microsoft.Extensions.FileProviders.Composite.CompositeDirectoryContents
to represents the result of a call composition ofMicrosoft.Extensions.FileProviders.IFileProvider.GetDirectoryContents(System.String)
.Arguments: - fileProviders (System.Collections.Generic.IList<Microsoft.Extensions.FileProviders.IFileProvider>) – The list of
Microsoft.Extensions.FileProviders.IFileProvider
for which the results have to be composed. - subpath (System.String) – The path.
public CompositeDirectoryContents(IList<IFileProvider> fileProviders, string subpath)
- fileProviders (System.Collections.Generic.IList<Microsoft.Extensions.FileProviders.IFileProvider>) – The list of
-
Properties¶
-
Microsoft.Extensions.FileProviders.Composite.CompositeDirectoryContents.
Exists
¶ Return type: System.Boolean public bool Exists { get; }
-
Methods¶
-
GetEnumerator
()¶ Return type: System.Collections.Generic.IEnumerator<Microsoft.Extensions.FileProviders.IFileInfo> public IEnumerator<IFileInfo> GetEnumerator()
-
GetEnumerator
() Return type: System.Collections.IEnumerator IEnumerator IEnumerable.GetEnumerator()
-