SoapOption 열거형

정의

SoapTypeAttribute 클래스와 함께 사용할 SOAP 구성 옵션을 지정합니다.

이 열거형은 멤버 값의 비트 조합을 지원합니다.

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

public enum class SoapOption
[System.Flags]
[System.Serializable]
public enum SoapOption
[System.Flags]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum SoapOption
[<System.Flags>]
[<System.Serializable>]
type SoapOption = 
[<System.Flags>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapOption = 
Public Enum SoapOption
상속
SoapOption
특성

필드

AlwaysIncludeTypes 1

SOAP 요소에 항상 형식이 포함된다는 것을 나타냅니다. 형식을 요소에 포함시켜 SOAP를 구현하여 SOAP interop를 수행할 때 유용한 옵션입니다.

EmbedAll 4

참조 없이 SOAP가 생성됨을 나타냅니다. 현재 이 옵션은 구현되지 않습니다.

None 0

별도의 옵션이 선택되지 않았음을 나타내는 기본 옵션입니다.

Option1 8

임시 interop 조건에 대한 공용 예약 옵션으로, 용도는 변경됩니다.

Option2 16

임시 interop 조건에 대한 공용 예약 옵션으로, 용도는 변경됩니다.

XsdString 2

SOAP 봉투(Envelope)의 출력 SOAP 문자열에서 XSD 접두사를 사용하고 XML에 문자열에 대한 ID 특성이 없음을 나타냅니다.

설명

SoapOption 열거형 SOAP를 생성 하는 방법에.NET Framework 지침을 지정 하는 데 사용 됩니다.

예를 들어, 기본적으로 열거형 값을 사용 하 여 클래스는 SoapOptions.None 다음과 같이 SOAP 형식으로 원격으로 지정할 수 있습니다.

<member1>10</member1>  
<member2 id="ref-3">hello</member2>  
<member3 href="#ref-3"/>  
<member4 href="#ref-4"/>  
<member4shared href="#ref-4"/>  
<member5 href="#ref-5"/>  
<member6 id="ref-6" xsi:type="SOAP-ENC:string">Hello World</member6>  
<str1 id="ref-7">hello &#60; world</str1>  
<str2 id="ref-8">&#60;</str2>  
<str3 id="ref-9">&#60; world</str3>  
<str4 href="#ref-7"/>  

옵션을 사용한 원격 serialization SoapOptions.XsdString 은 다음 XML을 생성 합니다.

<member1 xsi:type="xsd:int">10</member1>  
<member2 xsi:type="xsd:string">hello</member2>  
<member3 xsi:type="xsd:string">hello</member3>  
<member4 href="#ref-3"/>  
<member4shared href="#ref-3"/>  
<member5 href="#ref-4"/>  
<member6 xsi:type="xsd:string">Hello World</member6>  
<str1 xsi:type="xsd:string">hello &#60; world</str1>  
<str2 xsi:type="xsd:string">&#60;</str2>  
<str3 xsi:type="xsd:string">&#60; world</str3>  
<str4 xsi:type="xsd:string">hello &#60; world</str4>  

SOAP 봉투 (envelope)에 대 한 자세한 내용은 www.w3.org/tr/soap/#_Toc478383494를 참조 하세요.

적용 대상