다음을 통해 공유


SoapBodyBinding.Parts 속성

정의

전송된 메시지의 어느 부분이 전송의 SOAP 본문 부분에 표시되는지를 나타내는 값을 가져오거나 설정합니다.

public:
 property cli::array <System::String ^> ^ Parts { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public string[] Parts { get; set; }
member this.Parts : string[] with get, set
Public Property Parts As String()

속성 값

String[]

적절한 메시지 파트의 이름을 포함하는 문자열 배열입니다.

예제

SoapBinding^ mySoapBinding = gcnew SoapBinding;
mySoapBinding->Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;
// Get the URI for XML namespace of the SoapBinding class.
String^ myNameSpace = SoapBinding::Namespace;
Console::WriteLine( "The URI of the XML Namespace is :{0}", myNameSpace );
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;
// Get the URI for XML namespace of the SoapBinding class.
String myNameSpace = SoapBinding.Namespace;
Console.WriteLine("The URI of the XML Namespace is :"+myNameSpace);
Dim mySoapBinding As New SoapBinding()
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document
' Get the URI for XML namespace of the SoapBinding class.
Dim myNameSpace As String = SoapBinding.Namespace
Console.WriteLine("The URI of the XML Namespace is :" + myNameSpace)

설명

전송된 메시지의 일부 부분은 SOAP 본문이 아닌 다른 부분에 나타날 수 있습니다(예: SOAP가 와 함께 MimeMultipartRelatedBinding사용되는 경우). 이러한 경우 속성의 Extensions 다른 멤버는 메시지의 다른 부분의 위치를 결정합니다.

이 속성은 속성과 PartsString 정확히 동일한 정보를 반환하지만 결과는 공백으로 구분된 문자열이 아닌 배열 내에서 반환됩니다.

적용 대상