ディレクトリまたはファイルの絶対パスを取得します。
名前空間: System.IO
アセンブリ: mscorlib (mscorlib.dll 内)
Public Overridable ReadOnly Property FullName As String
Dim instance As FileSystemInfo
Dim value As String
value = instance.FullName
public virtual string FullName { get; }
public:
virtual property String^ FullName {
String^ get ();
}
/** @property */
public String get_FullName ()
public function get FullName () : String
プロパティ値
絶対パスを含んでいる文字列。
たとえば、ファイル c:\NewFile.txt の場合、このプロパティは "c:\NewFile.txt" を返します。
その他の一般的な I/O タスクまたは関連する I/O タスクの例を次の表に示します。
FullName プロパティの例を次に示します。このコード例は、FileSystemInfo クラスのトピックで取り上げているコード例の一部分です。
Sub DisplayFileSystemInfoAttributes(ByVal fsi As IO.FileSystemInfo)
' Assume that this entry is a file.
Dim entryType As String = "File"
' Determine if this entry is really a directory.
If (fsi.Attributes And FileAttributes.Directory) <> 0 Then
entryType = "Directory"
End If
' Show this entry's type, name, and creation date.
Console.WriteLine("{0} entry {1} was created on {2:D}", _
entryType, fsi.FullName, fsi.CreationTime)
End Sub
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
.NET Framework
サポート対象 : 2.0、1.1、1.0
.NET Compact Framework
サポート対象 : 2.0、1.0