Muokkaa

Jaa


SynchronizationAttribute Constructors

Definition

Initializes a new instance of the SynchronizationAttribute class.

Overloads

SynchronizationAttribute()

Initializes a new instance of the SynchronizationAttribute class with the default SynchronizationOption.

SynchronizationAttribute(SynchronizationOption)

Initializes a new instance of the SynchronizationAttribute class with the specified SynchronizationOption.

SynchronizationAttribute()

Initializes a new instance of the SynchronizationAttribute class with the default SynchronizationOption.

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

Examples

The following code example creates a new SynchronizationAttribute.

// This is equivalent to [Synchronization(SynchronizationOption.Required)].
[Synchronization]
public class SynchronizationAttribute_Ctor : ServicedComponent
{
}
' This is equivalent to [Synchronization(SynchronizationOption.Required)].
<Synchronization()>  _
Public Class SynchronizationAttribute_Ctor
    Inherits ServicedComponent
End Class

Remarks

The Value property is set to the default value Required.

Applies to

SynchronizationAttribute(SynchronizationOption)

Initializes a new instance of the SynchronizationAttribute class with the specified SynchronizationOption.

public:
 SynchronizationAttribute(System::EnterpriseServices::SynchronizationOption val);
public SynchronizationAttribute (System.EnterpriseServices.SynchronizationOption val);
new System.EnterpriseServices.SynchronizationAttribute : System.EnterpriseServices.SynchronizationOption -> System.EnterpriseServices.SynchronizationAttribute
Public Sub New (val As SynchronizationOption)

Parameters

Examples

The following code example creates a new SynchronizationAttribute.

[Synchronization(SynchronizationOption.Disabled)]
public class SynchronizationAttribute_Ctor_SynchronizationOption : ServicedComponent
{
}
<Synchronization(SynchronizationOption.Disabled)>  _
Public Class SynchronizationAttribute_Ctor_SynchronizationOption
    Inherits ServicedComponent
End Class

Applies to