Partager via


DispatchOperation Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Used to modify or extend the execution behavior of a specific operation at an endpoint. In Silverlight this class modifies the execution operations that are part of a duplex callback contract. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  System.ServiceModel.Dispatcher.DispatchOperation

Namespace:  System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Syntax

'Declaration
Public NotInheritable Class DispatchOperation
public sealed class DispatchOperation

The DispatchOperation type exposes the following members.

Constructors

  Name Description
Public method DispatchOperation Initializes a new instance of the DispatchOperation class using the specified dispatch runtime, name, and action values.

Top

Properties

  Name Description
Public property Action Gets the value of the action for this operation.
Public property AutoDisposeParameters Gets or sets whether parameters are to be automatically disposed.
Public property DeserializeRequest Gets or sets a value that indicates whether the Formatter property value is used to deserialize the request message.
Public property Formatter Gets or sets the formatter maps between objects and messages: it is used to deserialize messages into objects and to serialize objects into messages.
Public property IsOneWay Gets a value that indicates if the operation is a one-way operation.
Public property Name Gets the name of the operation.
Public property Parent Gets the associated DispatchRuntime object.
Public property SerializeReply Gets or sets a value that specifies whether the Formatter object serializes reply messages.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The DispatchOperation class provides the location for runtime modifications and an insertion point for custom extensions that are scoped to a single operation.

To modify runtime behavior for all of the messages within a contract, use the DispatchRuntime class.

To modify operations across a contract, install the DispatchOperation modifications using a custom operation behavior object or a behavior at a larger scope.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.