This documentation is archived and is not being maintained.

SynchronizationAttribute Members

Enforces a synchronization domain for the current context and all contexts that share the same instance.

The following tables list the members exposed by the SynchronizationAttribute type.

  Name Description
Public method SynchronizationAttribute Overloaded. Initializes a new instance of the SynchronizationAttribute class.
Top

(see also Protected Fields )
  Name Description
Public field Static 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 field Static 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 field Static 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 field Static SUPPORTED Indicates that the class to which this attribute is applied is not dependent on whether the context has synchronization. This field is constant.
Top

  Name Description
Protected field AttributeName  Indicates the name of the context attribute.(Inherited from ContextAttribute.)
Top

  Name Description
Public property IsReEntrant Gets or sets a Boolean value indicating whether reentry is required.
Public property Locked Gets or sets a Boolean value indicating whether the Context implementing this instance of SynchronizationAttribute is locked.
Public property Name  Gets the name of the context attribute.(Inherited from ContextAttribute.)
Public property TypeId  When implemented in a derived class, gets a unique identifier for this Attribute.(Inherited from Attribute.)
Top

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. (Inherited from ContextAttribute.)
Public method Freeze  Called when the context is frozen. (Inherited from ContextAttribute.)
Public method GetClientContextSink 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 method Static GetCustomAttribute  Overloaded. Retrieves a custom attribute of a specified type applied to an assembly, module, type member, or method parameter. (Inherited from Attribute.)
Public method Static GetCustomAttributes  Overloaded. Retrieves an array of the custom attributes applied to an assembly, module, type member, or method parameter. (Inherited from Attribute.)
Public method GetHashCode  Returns the hashcode for this instance of ContextAttribute. (Inherited from ContextAttribute.)
Public method GetPropertiesForNewContext Overridden. Adds the Synchronized context property to the specified IConstructionCallMessage.
Public method GetServerContextSink 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 method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method IsContextOK Overridden. Returns a Boolean value indicating whether the context parameter meets the context attribute's requirements.
Public method IsDefaultAttribute  When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.)
Public method Static IsDefined  Overloaded. Determines whether any custom attributes of a specified type are applied to an assembly, module, type member, or method parameter. (Inherited from Attribute.)
Public method IsNewContextOK  Returns a Boolean value indicating whether the context property is compatible with the new context. (Inherited from ContextAttribute.)
Public method Match  When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top
Show: