Export (0) Print
Expand All

OperationDescription Class

A contract that characterizes an operation in terms of the messages it exchanges.

System.Object
  System.ServiceModel.Description.OperationDescription

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

[DebuggerDisplayAttribute("Name={name}, IsInitiating={isInitiating}, IsTerminating={isTerminating}")]
public class OperationDescription

The OperationDescription type exposes the following members.

  NameDescription
Public methodSupported by Silverlight for Windows PhoneOperationDescriptionInitializes a new instance of the OperationDescription class with a specified name and contract description.
Top

  NameDescription
Public propertySupported by Silverlight for Windows PhoneBeginMethodGets or sets the begin method of the operation.
Public propertyBehaviorsGets or sets the operation behaviors associated with the operation.
Public propertySupported by Silverlight for Windows PhoneDeclaringContractGets or sets the contract to which the operation belongs.
Public propertySupported by Silverlight for Windows PhoneEndMethodGets or sets the end method of the operation.
Public propertySupported by Silverlight for Windows PhoneFaultsGets a collection of the descriptions of the faults associated with the operation description.
Public propertySupported by Silverlight for Windows PhoneIsOneWayGets a value that indicates whether an operation returns a reply message.
Public propertySupported by Silverlight for Windows PhoneKnownTypesGets the known types associated with the operation description.
Public propertySupported by Silverlight for Windows PhoneMessagesGets or sets the descriptions of the messages that make up the operation.
Public propertySupported by Silverlight for Windows PhoneNameGets or sets the name of the operation description.
Public propertySupported by Silverlight for Windows PhoneSyncMethodGets or sets the service synchronization method of the operation description.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneToStringReturns a string that represents the current object. (Inherited from Object.)
Top

A contract is a collection of operations that specifies what the endpoint communicates to the outside world. Each operation is a message exchange: for example, a request message and an associated reply message that form a request/reply message exchange.

A ContractDescription object is used to describe contracts and their operations. Within a ContractDescription, each contract operation has a corresponding OperationDescription that describes aspects of the operation, such as whether the operation is one-way or request/reply. Each OperationDescription also describes the messages that make up the operation using a collection of MessageDescription objects. ContractDescription contains a reference to an interface that defines the contract using the programming model. This interface is marked with ServiceContractAttribute, and its methods that correspond to endpoint operations are marked with OperationContractAttribute.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

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

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

Community Additions

ADD
Show:
© 2015 Microsoft