Assembly: mscorlib (in mscorlib.dll)
Public MustOverride ReadOnly Property FullName As Stringpublic abstract string FullName { get; }public:
virtual property String^ FullName {
String^ get () abstract;
}abstract FullName : string
Property Value
Type: SystemThe fully qualified name of the Type, including the namespace of the Type but not the assembly; or
Implements
_TypeFor example, the fully qualified name of the C# string type is System.String. Contrast this with the assembly-qualified name, which is the full name plus the assembly, provided by the AssemblyQualifiedName property.
If the current Type represents a generic type, the type arguments in the string returned by FullName are qualified by their assembly, version, and so on, even though the string representation of the generic type itself is not qualified by assembly. Thus, concatenating t.FullName + ", " + t.Assembly.FullName produces a result that is equivalent to t.AssemblyQualifiedName, as is the case with types that are not generic.
If the current Type represents a type parameter of a generic type, or an array type, pointer type, or byref type based on a type parameter, this property returns
If the current type contains generic type parameters that have not been replaced by specific types (that is, the ContainsGenericParameters property returns true), but the type is not a generic type definition (that is, the IsGenericTypeDefinition property returns false), this property returns
Public Class Base(Of TBase)
End Class
Public Class Derived(Of TDerived)
Inherits Base(Of TDerived)
End Class
public class Base<TBase> { }
public class Derived<TDerived> : Base<TDerived> { }
generic<typename TBase>
public ref class Base { };
generic<typename TDerived>
public ref class Derived : Base<TDerived> { };
If you use the BaseType property to obtain the base type of Derived, the FullName property of the resulting Type object returns
This property is read-only.
The following example displays the full name of the specified type.
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
' This example produces the following output:
'
'The full name of the Array type is System.Array.
'
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);
}
}
/* This example produces the following output:
The full name of the Array type is System.Array.
*/
using namespace System;
int main()
{
Type^ t = Array::typeid;
Console::WriteLine( "The full name of the Array type is {0}.", t->FullName );
}
/* This example produces the following output:
The full name of the Array type is System.Array.
*/
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.