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 string PartsString { get; set; }

Property Value

A space-delimited string containing the appropriate message parts.

Examples

// 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;

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

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)