Redigera

Dela via


SoapBodyBinding.PartsString Property

Definition

Gets or sets a value indicating which parts of the transmitted message appear within the SOAP body portion of the transmission.

public:
 property System::String ^ PartsString { System::String ^ get(); void set(System::String ^ value); };
public string PartsString { get; set; }
member this.PartsString : string with get, set
Public Property PartsString As String

Property Value

A space-delimited string containing the appropriate message parts.

Examples

// Create the 'InputBinding' object for the 'SOAP' protocol.
InputBinding^ myInput = gcnew InputBinding;
SoapBodyBinding^ mySoapBinding1 = gcnew SoapBodyBinding;
mySoapBinding1->PartsString = "parameters";
mySoapBinding1->Use = SoapBindingUse::Literal;
myInput->Extensions->Add( mySoapBinding1 );

// Assign the 'InputBinding' to 'OperationBinding'.
myOperationBinding->Input = myInput;

// Create the 'OutputBinding' object' for the 'SOAP' protocol..
OutputBinding^ myOutput = gcnew OutputBinding;
myOutput->Extensions->Add( mySoapBinding1 );

// Assign the 'OutPutBinding' to 'OperationBinding'.
myOperationBinding->Output = myOutput;
// Create the 'InputBinding' object for the 'SOAP' protocol.
InputBinding myInput = new InputBinding();
SoapBodyBinding mySoapBinding1 = new SoapBodyBinding();
mySoapBinding1.PartsString = "parameters";
mySoapBinding1.Use= SoapBindingUse.Literal;
myInput.Extensions.Add(mySoapBinding1);
// Assign the 'InputBinding' to 'OperationBinding'.
myOperationBinding.Input = myInput;
// Create the 'OutputBinding' object' for the 'SOAP' protocol..
OutputBinding myOutput = new OutputBinding();
myOutput.Extensions.Add(mySoapBinding1);
 // Assign the 'OutPutBinding' to 'OperationBinding'.
myOperationBinding.Output = myOutput;
' Create the 'InputBinding' object for the 'SOAP' protocol.
Dim myInput As New InputBinding()
Dim mySoapBinding1 As New SoapBodyBinding()
mySoapBinding1.PartsString = "parameters"
mySoapBinding1.Use = SoapBindingUse.Literal
myInput.Extensions.Add(mySoapBinding1)
' Assign the 'InputBinding' to 'OperationBinding'.
myOperationBinding.Input = myInput
' Create the 'OutputBinding' object' for the 'SOAP' protocol..
Dim myOutput As New OutputBinding()
myOutput.Extensions.Add(mySoapBinding1)
' Assign the 'OutPutBinding' to 'OperationBinding'.
myOperationBinding.Output = myOutput

Remarks

Some parts of the transmitted message can appear in portions other than the SOAP body, such as when SOAP is used with a MimeMultipartRelatedBinding. In such a case, the other members of the Extensions property determine the locations of other parts of the message.

This property returns exactly the same information as the Parts property, but the results are returned within a space-delimited string rather than within an array. PartsString is used internally for xml serialization and shouldn't be called directly. To return the transmitted message parts appearing within the SOAP body portion of the transmission, use the Parts property.

Applies to