Type.FullName Property
Gets the fully qualified name of the Type, including the namespace of the Type.
[Visual Basic] 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;
Property Value
A string containing the fully qualified name of the Type, including the namespace of the Type.
Remarks
For example, the fully qualified name of the C# string type is System.String.
This property is read-only.
Example
[Visual Basic, C#, C++] The following example displays the full name of the specified type.
[Visual Basic] 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++] This code produces the following output:
[Visual Basic, C#, C++] The full name of the Array type is
System.Array
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard
See Also
Type Class | Type Members | System Namespace | String | Namespace | AssemblyQualifiedName | Specifying Fully Qualified Type Names | AssemblyName