SendMessageContent Constructors
Definition
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.
Initializes a new instance of the SendMessageContent class.
Overloads
SendMessageContent() |
Initializes a new instance of the SendMessageContent class. |
SendMessageContent(InArgument) |
Initializes a new instance of the SendMessageContent class with the specified data to send. |
SendMessageContent(InArgument, Type) |
Initializes a new instance of the SendMessageContent class with the specified message and message type. |
SendMessageContent()
Initializes a new instance of the SendMessageContent class.
public:
SendMessageContent();
public SendMessageContent ();
Public Sub New ()
Applies to
SendMessageContent(InArgument)
Initializes a new instance of the SendMessageContent class with the specified data to send.
public:
SendMessageContent(System::Activities::InArgument ^ message);
public SendMessageContent (System.Activities.InArgument message);
new System.ServiceModel.Activities.SendMessageContent : System.Activities.InArgument -> System.ServiceModel.Activities.SendMessageContent
Public Sub New (message As InArgument)
Parameters
- message
- InArgument
The data to send.
Examples
The following example shows how to use this constructor.
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))
};
Applies to
SendMessageContent(InArgument, Type)
Initializes a new instance of the SendMessageContent class with the specified message and message type.
public:
SendMessageContent(System::Activities::InArgument ^ message, Type ^ declaredMessageType);
public SendMessageContent (System.Activities.InArgument message, Type declaredMessageType);
new System.ServiceModel.Activities.SendMessageContent : System.Activities.InArgument * Type -> System.ServiceModel.Activities.SendMessageContent
Public Sub New (message As InArgument, declaredMessageType As Type)
Parameters
- message
- InArgument
The data to send.
- declaredMessageType
- Type
The data type that appears on the service description. It must be the same type as message
or any base type of message
.