Share via


Root Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the root portion of the directory.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

Syntax

'Declaration
Public ReadOnly Property Root As DirectoryInfo
public DirectoryInfo Root { get; }
public:
property DirectoryInfo^ Root {
    DirectoryInfo^ get ();
}
member Root : DirectoryInfo with get
function get Root () : DirectoryInfo

Property Value

Type: System.IO. . :: . .DirectoryInfo
An object that represents the root of the directory.

.NET Framework Security

See Also

Reference

DirectoryInfo Class

System.IO Namespace