Share via


Type.FullName プロパティ

Type の名前空間を含む、 Type の完全限定名を取得します。

Public MustOverride ReadOnly Property FullName As String
[C#]
public abstract string FullName {get;}
[C++]
public: __property virtual String* get_FullName() = 0;
[JScript]
public abstract function get FullName() : String;

プロパティ値

Type の名前空間を含む、 Type の完全限定名。

解説

たとえば、C# 文字列型の完全限定名は、System.String となります。

このプロパティは読み取り専用です。

使用例

[Visual Basic, C#, C++] 指定した型の完全名を返す例を次に示します。

 
Imports System

Class TestFullName
   
    Public Shared Sub Main()
        Dim t As Type = GetType(Array)
        Console.WriteLine("The full name of the Array type is {0}.", t.FullName)
    End Sub 'Main
End Class 'TestFullName

[C#] 
using System;
class TestFullName 
{
public static void Main() 
    {
    Type t = typeof(Array);
    Console.WriteLine("The full name of the Array type is {0}.", t.FullName);
    }
} 

[C++] 
#using <mscorlib.dll>

using namespace System;

int main() {
   Type*  t = __typeof(Array);
   Console::WriteLine(S"The full name of the Array type is {0}.", t->FullName);
} 

[Visual Basic, C#, C++] このコードによって、次の出力が生成されます。

[Visual Basic, C#, C++] The full name of the Array type is System.Array

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard

参照

Type クラス | Type メンバ | System 名前空間 | String | Namespace | AssemblyQualifiedName | 完全限定型名の指定 | AssemblyName