Compartilhar via


HttpBinding.Namespace Campo

Definição

Especifica o URI do namespace de XML que representa o transporte HTTP para uso com SOAP. Este campo é constante.

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

Valor do campo

Exemplos

O exemplo a seguir demonstra um uso típico do Namespace campo.

// 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)

Comentários

O valor do campo é "http://schemas.xmlsoap.org/wsdl/http/".

Aplica-se a