Export (0) Print
Expand All

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.

System.Object
   System.Attribute
      System.EnterpriseServices.MustRunInClientContextAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Class)>
<ComVisible(False)>
NotInheritable Public Class MustRunInClientContextAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Class)]
[ComVisible(false)]
public sealed class MustRunInClientContextAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Class)]
[ComVisible(false)]
public __gc __sealed class MustRunInClientContextAttribute :
   public Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Class)
 ComVisible(false)
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.

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft