SendMessageContent Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class SendMessageContent sealed : System::ServiceModel::Activities::SendContent
[System.Windows.Markup.ContentProperty("Message")]
public sealed class SendMessageContent : System.ServiceModel.Activities.SendContent
[<System.Windows.Markup.ContentProperty("Message")>]
type SendMessageContent = class
inherit SendContent
Public NotInheritable Class SendMessageContent
Inherits SendContent
- Inheritance
- Attributes
The following example shows how to use a SendMessageContent instance with a Send activity.
Variable<PurchaseOrder> po = new Variable<PurchaseOrder>();
Variable<Customer> customer = new Variable<Customer>();
Endpoint clientEndpoint = new Endpoint
{
Binding = Constants.Binding,
AddressUri = new Uri(Constants.ServiceAddress)
};
Send submitPO = new Send
{
Endpoint = clientEndpoint,
ServiceContractName = Constants.POContractName,
OperationName = Constants.SubmitPOName,
Content = new SendMessageContent(new InArgument<PurchaseOrder>(po))
};
When using this class, messages serialized on the wire are unwrapped, unless the data is a message contract type or of type Message.
Send |
Initializes a new instance of the SendMessageContent class. |
Send |
Initializes a new instance of the SendMessageContent class with the specified message and message type. |
Send |
Initializes a new instance of the SendMessageContent class with the specified data to send. |
Declared |
Gets or sets the declared message type. |
Message |
Gets or sets the data to send. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Should |
Gets a value that indicates whether the DeclaredMessageType property should be XAML-serialized. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: