共用方式為


HttpBinding.Namespace 欄位

定義

指定 XML 命名空間的 URI,表示用於 SOAP 的 HTTP 傳輸。 這個欄位為常數。

public: System::String ^ Namespace;
public const string Namespace;
val mutable Namespace : string
Public Const Namespace As 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/ 」。

適用於