Partajați prin


DirectoryInfoBase.GetFile(String) Method

Definition

Returns an instance of FileInfoBase that represents a file in the directory.

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

Parameters

path
String

The file name.

Returns

Instance of FileInfoBase even if file does not exist.

Applies to