CompilerGlobalScopeAttribute Class
This documentation is archived and is not being maintained.

CompilerGlobalScopeAttribute Class

Indicates that a class should be treated as if it has global scope.

For a list of all members of this type, see CompilerGlobalScopeAttribute Members.

System.Object
   System.Attribute
      System.Runtime.CompilerServices.CompilerGlobalScopeAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Class)>
<Serializable>
Public Class CompilerGlobalScopeAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Class)]
[Serializable]
public class CompilerGlobalScopeAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Class)]
[Serializable]
public __gc class CompilerGlobalScopeAttribute : public Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Class)
 Serializable
class CompilerGlobalScopeAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

You can apply this attribute to classes.

This class is used only for communication with debugger tools.

The classes in System.Runtime.CompilerServices are for compiler writers use only.

Requirements

Namespace: System.Runtime.CompilerServices

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

CompilerGlobalScopeAttribute Members | System.Runtime.CompilerServices Namespace

Show:
© 2016 Microsoft