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 of Microsoft.Extensions.FileProviders.IFileProvider.GetDirectoryContents(System.String).

Arguments:
public CompositeDirectoryContents(IList<IFileProvider> fileProviders, string subpath)

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()