SoapBodyBinding.PartsString Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft welke delen van het verzonden bericht in het SOAP-hoofdgedeelte van de overdracht worden weergegeven.

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

Waarde van eigenschap

Een tekenreeks met spatiescheidingstekens die de juiste berichtonderdelen bevat.

Voorbeelden

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

Opmerkingen

Sommige delen van het verzonden bericht kunnen worden weergegeven in andere delen dan de SOAP-hoofdtekst, zoals wanneer SOAP wordt gebruikt met een MimeMultipartRelatedBinding. In dat geval bepalen de andere leden van de Extensions eigenschap de locaties van andere onderdelen van het bericht.

Deze eigenschap retourneert precies dezelfde informatie als de Parts eigenschap, maar de resultaten worden geretourneerd binnen een tekenreeks met spatiescheiding in plaats van binnen een matrix. PartsString wordt intern gebruikt voor xml-serialisatie en mag niet rechtstreeks worden aangeroepen. Als u de verzonden berichtonderdelen wilt retourneren die in het SOAP-hoofdgedeelte van de overdracht worden weergegeven, gebruikt u de Parts eigenschap.

Van toepassing op