SoapBodyBinding.PartsString Property
Gets or sets a value indicating which parts of the transmitted message appear within the SOAP body portion of the transmission.
[Visual Basic] Public Property PartsString As String [C#] public string PartsString {get; set;} [C++] public: __property String* get_PartsString(); public: __property void set_PartsString(String*); [JScript] public function get PartsString() : String; public function set PartsString(String);
Property Value
A space-delimited string containing the appropriate message parts.
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.
Example
[Visual Basic] ' 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 [C#] // 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; [C++] // Create the 'InputBinding' object for the 'SOAP' protocol. InputBinding* myInput = new InputBinding(); SoapBodyBinding* mySoapBinding1 = new SoapBodyBinding(); mySoapBinding1->PartsString = S"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;
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
SoapBodyBinding Class | SoapBodyBinding Members | System.Web.Services.Description Namespace