HttpBinding Classe
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Representa um elemento de extensibilidade adicionado a Binding dentro de um serviço Web XML. Esta classe não pode ser herdada.
public ref class HttpBinding sealed : System::Web::Services::Description::ServiceDescriptionFormatExtension
[System.Web.Services.Configuration.XmlFormatExtension("binding", "http://schemas.xmlsoap.org/wsdl/http/", typeof(System.Web.Services.Description.Binding))]
[System.Web.Services.Configuration.XmlFormatExtensionPrefix("http", "http://schemas.xmlsoap.org/wsdl/http/")]
public sealed class HttpBinding : System.Web.Services.Description.ServiceDescriptionFormatExtension
[<System.Web.Services.Configuration.XmlFormatExtension("binding", "http://schemas.xmlsoap.org/wsdl/http/", typeof(System.Web.Services.Description.Binding))>]
[<System.Web.Services.Configuration.XmlFormatExtensionPrefix("http", "http://schemas.xmlsoap.org/wsdl/http/")>]
type HttpBinding = class
inherit ServiceDescriptionFormatExtension
Public NotInheritable Class HttpBinding
Inherits ServiceDescriptionFormatExtension
- Herança
- Atributos
Exemplos
O exemplo seguinte mostra uma utilização típica da HttpBinding classe.
// Create the 'HttpBinding' object.
HttpBinding^ myHttpBinding = gcnew HttpBinding;
myHttpBinding->Verb = "POST";
// Add the 'HttpBinding' to the 'Binding'.
myBinding->Extensions->Add( myHttpBinding );
// Create the 'HttpBinding' object.
HttpBinding myHttpBinding = new HttpBinding();
myHttpBinding.Verb="POST";
// Add the 'HttpBinding' to the 'Binding'.
myBinding.Extensions.Add(myHttpBinding);
' Create the 'HttpBinding' object.
Dim myHttpBinding As New HttpBinding()
myHttpBinding.Verb = "POST"
' Add the 'HttpBinding' to the 'Binding'.
myBinding.Extensions.Add(myHttpBinding)
Observações
O uso desta classe como elemento de extensibilidade especifica que a informação deve ser passada por HTTP. Para mais informações sobre a especificação de protocolos para serviços Web XML, consulte XML Web Services Using ASP.NET. Para mais informações sobre a Web Services Description Language (WSDL), consulte a especificação WSDL .
Construtores
| Name | Description |
|---|---|
| HttpBinding() |
Inicializa uma nova instância da HttpBinding classe. |
Campos
| Name | Description |
|---|---|
| Namespace |
Especifica o URI para o espaço de nomes XML que representa o transporte HTTP para uso com SOAP. Este campo é constante. |
Propriedades
| Name | Description |
|---|---|
| Handled |
Recebe ou define um valor que indica se o ServiceDescriptionFormatExtension é usado pelo processo de importação quando o elemento de extensibilidade é importado. (Herdado de ServiceDescriptionFormatExtension) |
| Parent |
Obtém o progenitor do ServiceDescriptionFormatExtension. (Herdado de ServiceDescriptionFormatExtension) |
| Required |
Recebe ou define um valor que indica se o ServiceDescriptionFormatExtension é necessário para a ação a que se refere. (Herdado de ServiceDescriptionFormatExtension) |
| Verb |
Recebe ou define um valor que indica se o pedido HTTP será feito usando o método "GET" ou "POST". |
Métodos
| Name | Description |
|---|---|
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual. (Herdado de Object) |
| GetHashCode() |
Serve como função de hash predefinida. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do atual Object. (Herdado de Object) |
| ToString() |
Devolve uma cadeia que representa o objeto atual. (Herdado de Object) |