C# DirectoryInfo FullName

Description

DirectoryInfo FullName Gets the full path of the directory or file.

Syntax

DirectoryInfo.FullName has the following syntax.


public virtual string FullName { get; }

Example

Gets the full path of the directory.


using System;//from ww  w  .ja v a  2 s . c o  m
using System.IO;

class Class1
{
   public static void Main(){
      DirectoryInfo  target = new DirectoryInfo("c:/abc");
      Console.WriteLine(target.FullName);
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.IO »




BinaryReader
BinaryWriter
Directory
DirectoryInfo
DriveInfo
File
FileInfo
FileStream
MemoryStream
Path
StreamReader
StreamWriter
StringReader
StringWriter