This documentation is archived and is not being maintained.

MustRunInClientContextAttribute Class

Forces the attributed object to be created in the context of the creator, if possible. This class cannot be inherited.

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


[Visual Basic]
NotInheritable Public Class MustRunInClientContextAttribute
   Inherits Attribute
public sealed class MustRunInClientContextAttribute : Attribute
public __gc __sealed class MustRunInClientContextAttribute :
   public Attribute
class MustRunInClientContextAttribute 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.


If the context attributes of the attributed object conflict with those of the context of the creator, a System.Runtime.InteropServices.COMException is thrown when an attempt is made to create the object.

For more information about using attributes, see Extending Metadata Using Attributes.


Namespace: System.EnterpriseServices

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Enterpriseservices (in System.Enterpriseservices.dll)

See Also

MustRunInClientContextAttribute Members | System.EnterpriseServices Namespace