DirectoryInfoBase.GetDirectory(String) Method

Definition

Returns an instance of DirectoryInfoBase that represents a subdirectory.

public:
 abstract Microsoft::Extensions::FileSystemGlobbing::Abstractions::DirectoryInfoBase ^ GetDirectory(System::String ^ path);
public abstract Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase? GetDirectory (string path);
abstract member GetDirectory : string -> Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase
Public MustOverride Function GetDirectory (path As String) As DirectoryInfoBase

Parameters

path
String

The directory name.

Returns

Instance of DirectoryInfoBase even if directory does not exist.

Applies to