다음을 통해 공유


HttpBinding.Namespace 필드

정의

SOAP에 사용할 HTTP 전송을 나타내는 XML 네임스페이스에 대한 URI를 지정합니다. 이 필드는 상수입니다.

public: System::String ^ Namespace;
public const string Namespace;
val mutable Namespace : string
Public Const Namespace As String 

필드 값

String

예제

다음 예제에서는의 일반적인 용도 Namespace 필드입니다.

// Create 'Binding' object.
Binding^ myBinding = gcnew Binding;
myBinding->Name = "MyHttpBindingServiceHttpPost";
XmlQualifiedName^ qualifiedName = gcnew XmlQualifiedName( "s0:MyHttpBindingServiceHttpPost" );
myBinding->Type = qualifiedName;

// Create 'HttpBinding' object.
HttpBinding^ myHttpBinding = gcnew HttpBinding;
myHttpBinding->Verb = "POST";
Console::WriteLine( "HttpBinding Namespace : {0}", HttpBinding::Namespace );
// Create 'Binding' object.
Binding myBinding = new Binding();
myBinding.Name = "MyHttpBindingServiceHttpPost";
XmlQualifiedName qualifiedName = new XmlQualifiedName("s0:MyHttpBindingServiceHttpPost");
myBinding.Type = qualifiedName;
// Create 'HttpBinding' object.
HttpBinding myHttpBinding = new HttpBinding();
myHttpBinding.Verb = "POST";
Console.WriteLine("HttpBinding Namespace : "+HttpBinding.Namespace);
' Create 'Binding' object.
Dim myBinding As New Binding()
myBinding.Name = "MyHttpBindingServiceHttpPost"
Dim qualifiedName As New XmlQualifiedName("s0:MyHttpBindingServiceHttpPost")
myBinding.Type = qualifiedName
' Create 'HttpBinding' object.
Dim myHttpBinding As New HttpBinding()
myHttpBinding.Verb = "POST"
Console.WriteLine("HttpBinding Namespace : " + HttpBinding.Namespace)

설명

필드 값이 "http://schemas.xmlsoap.org/wsdl/http/"입니다.

적용 대상