Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initialisiert eine neue Instanz der CompilerGlobalScopeAttribute-Klasse.
Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Sub New
'Usage
Dim instance As New CompilerGlobalScopeAttribute
public CompilerGlobalScopeAttribute ()
public:
CompilerGlobalScopeAttribute ()
public CompilerGlobalScopeAttribute ()
public function CompilerGlobalScopeAttribute ()
Beispiel
Im folgenden Codebeispiel wird die Verwendung von CompilerGlobalScopeAttribute veranschaulicht.
Imports System.Runtime.CompilerServices
<CompilerGlobalScopeAttribute()> _
Module Program
Sub Main(ByVal args() As String)
Console.WriteLine("The attribute was applied.")
End Sub
End Module
using System;
using System.Runtime.CompilerServices;
[CompilerGlobalScopeAttribute()]
class Program
{
static void Main(string[] args)
{
Console.WriteLine("The attribute was applied.");
}
}
Plattformen
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
CompilerGlobalScopeAttribute-Klasse
CompilerGlobalScopeAttribute-Member
System.Runtime.CompilerServices-Namespace