This documentation is archived and is not being maintained.

AutomationProxyAttribute Class

Specifies whether the type should be marshaled using the Automation marshaler or a custom proxy and stub.

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


[Visual Basic]
<AttributeUsage(AttributeTargets.Assembly Or AttributeTargets.Class _
   Or AttributeTargets.Interface)>
NotInheritable Public Class AutomationProxyAttribute
   Inherits Attribute
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class
   | AttributeTargets.Interface)]
public sealed class AutomationProxyAttribute : Attribute
[AttributeUsage(AttributeTargets::Assembly |
   AttributeTargets::Class | AttributeTargets::Interface)]
public __gc __sealed class AutomationProxyAttribute : public
   AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class |
class AutomationProxyAttribute 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.


You can apply this attribute to assemblies, classes, or interfaces.

When applied to a class, it extends to the class interface for that class, if present.


Namespace: System.Runtime.InteropServices

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

AutomationProxyAttribute Members | System.Runtime.InteropServices Namespace