WebReference.ProtocolName 속성

정의

웹 참조와 연결된 프로토콜을 가져오거나 설정합니다.

public:
 property System::String ^ ProtocolName { System::String ^ get(); void set(System::String ^ value); };
public string ProtocolName { get; set; }
member this.ProtocolName : string with get, set
Public Property ProtocolName As String

속성 값

String

웹 참조와 연결된 프로토콜의 이름이 들어 있는 String입니다.

예제

다음 코드 예제에서는이 속성의 사용을 보여 줍니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 WebReference 클래스입니다.

// Create a web referernce using the WSDL collection.
WebReference reference = new WebReference(wsdlCollection, space);
reference.ProtocolName = "Soap12";

설명

허용되는 프로토콜 문자열에는 "Soap"(SOAP 1.0을 나타낸) 및 "Soap12"(SOAP 1.2를 나타낸)가 포함됩니다. 이 속성의 값은 컬렉션의 XML 웹 서비스에 연결할 때 프록시 클라이언트에서 사용하는 프로토콜을 Documents 결정합니다.

SOAP에 대한 자세한 내용은 World Wide Web 컨소시엄 웹 사이트를 참조하세요.

적용 대상