Επεξεργασία

Κοινή χρήση μέσω


MustRunInClientContextAttribute Constructors

Definition

Initializes a new instance of the MustRunInClientContextAttribute class.

Overloads

MustRunInClientContextAttribute()

Initializes a new instance of the MustRunInClientContextAttribute class, requiring creation of the object in the context of the creator.

MustRunInClientContextAttribute(Boolean)

Initializes a new instance of the MustRunInClientContextAttribute class, optionally not creating the object in the context of the creator.

MustRunInClientContextAttribute()

Initializes a new instance of the MustRunInClientContextAttribute class, requiring creation of the object in the context of the creator.

public:
 MustRunInClientContextAttribute();
public MustRunInClientContextAttribute ();
Public Sub New ()

Examples

The following code example creates a new MustRunInClientContextAttribute.

[MustRunInClientContext]
public class MustRunInClientContextAttribute_Ctor : ServicedComponent
{
}
<MustRunInClientContext()>  _
Public Class MustRunInClientContextAttribute_Ctor
    Inherits ServicedComponent
End Class

Applies to

MustRunInClientContextAttribute(Boolean)

Initializes a new instance of the MustRunInClientContextAttribute class, optionally not creating the object in the context of the creator.

public:
 MustRunInClientContextAttribute(bool val);
public MustRunInClientContextAttribute (bool val);
new System.EnterpriseServices.MustRunInClientContextAttribute : bool -> System.EnterpriseServices.MustRunInClientContextAttribute
Public Sub New (val As Boolean)

Parameters

val
Boolean

true to create the object in the context of the creator; otherwise, false.

Examples

The following code example creates a new MustRunInClientContextAttribute.

[MustRunInClientContext(false)]
public class MustRunInClientContextAttribute_Ctor_Bool : ServicedComponent
{
}
<MustRunInClientContext(False)>  _
Public Class MustRunInClientContextAttribute_Ctor_Bool
    Inherits ServicedComponent
End Class

Applies to