Bewerken

Delen via


JustInTimeActivationAttribute Constructors

Definition

Initializes a new instance of the JustInTimeActivationAttribute class.

Overloads

JustInTimeActivationAttribute()

Initializes a new instance of the JustInTimeActivationAttribute class. The parameterless constructor enables just-in-time (JIT) activation.

JustInTimeActivationAttribute(Boolean)

Initializes a new instance of the JustInTimeActivationAttribute class, optionally allowing the disabling of just-in-time (JIT) activation by passing false as the parameter.

JustInTimeActivationAttribute()

Initializes a new instance of the JustInTimeActivationAttribute class. The parameterless constructor enables just-in-time (JIT) activation.

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

Examples

The following code example creates a new JustInTimeActivationAttribute.

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

Applies to

JustInTimeActivationAttribute(Boolean)

Initializes a new instance of the JustInTimeActivationAttribute class, optionally allowing the disabling of just-in-time (JIT) activation by passing false as the parameter.

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

Parameters

val
Boolean

true to enable JIT activation; otherwise, false.

Examples

The following code example creates a new JustInTimeActivationAttribute.

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

Remarks

JIT activation is required and val cannot be set to false if the TransactionOption value for the transaction is Supported, Required, or RequiresNew.

Applies to