This documentation is archived and is not being maintained.

SynchronizationAttribute Members

SynchronizationAttribute overview

Public Constructors

public constructorSynchronizationAttribute Constructor Overloaded. Initializes a new instance of the SynchronizationAttribute class.

Public Fields

public fieldstatic (Shared in Visual Basic)NOT_SUPPORTED Indicates that the class to which this attribute is applied cannot be created in a context that has synchronization. This field is constant.
public fieldstatic (Shared in Visual Basic)REQUIRED Indicates that the class to which this attribute is applied must be created in a context that has synchronization. This field is constant.
public fieldstatic (Shared in Visual Basic)REQUIRES_NEW Indicates that the class to which this attribute is applied must be created in a context with a new instance of the synchronization property each time. This field is constant.
public fieldstatic (Shared in Visual Basic)SUPPORTED Indicates that the class to which this attribute is applied is not dependent on whether the context has synchronization. This field is constant.

Public Properties

public propertyIsReEntrant Gets or sets a Boolean value indicating whether reentry is required.
public propertyLocked Gets or sets a Boolean value indicating whether the Context implementing this instance of SynchronizationAttribute is locked.
public propertyTypeId (inherited from Attribute) When implemented in a derived class, gets a unique identifier for this Attribute.

Public Methods

public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetClientContextSink Creates a CallOut sink and chains it in front of the provided chain of sinks at the context boundary on the client end of a remoting call.
public methodGetHashCode (inherited from Attribute) Overridden. Returns the hash code for this instance.
public methodGetPropertiesForNewContext Overridden. Adds the Synchronized context property to the specified IConstructionCallMessage.
public methodGetServerContextSink Creates a synchronized dispatch sink and chains it in front of the provided chain of sinks at the context boundary on the server end of a remoting call.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodIsContextOK Overridden. Returns a Boolean value indicating whether the context parameter meets the context attribute's requirements.
public methodIsDefaultAttribute (inherited from Attribute) When overridden in a derived class, returns an indication whether the value of this instance is the default value for the derived class.
public methodMatch (inherited from Attribute) When overridden in a derived class, returns a value indicating whether this instance equals a specified object.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

SynchronizationAttribute Class | System.Runtime.Remoting.Contexts Namespace

Show: