HttpBinding Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Representa um elemento de extensibilidade adicionado a um Binding serviço Web XML. Essa 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 a seguir mostra um uso típico 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)
Comentários
O uso dessa classe como um elemento de extensibilidade especifica que as informações devem ser passadas por HTTP. Para obter mais informações sobre a especificação de protocolos para serviços Web XML, consulte XML Web Services usando ASP.NET. Para obter mais informações sobre a Linguagem de Descrição dos Serviços Web (WSDL), consulte a especificação do WSDL .
Construtores
| Nome | Description |
|---|---|
| HttpBinding() |
Inicializa uma nova instância da classe HttpBinding. |
Campos
| Nome | Description |
|---|---|
| Namespace |
Especifica o URI para o namespace XML que representa o transporte HTTP para uso com SOAP. Esse campo é constante. |
Propriedades
| Nome | Description |
|---|---|
| Handled |
Obtém ou define um valor que indica se o ServiceDescriptionFormatExtension processo de importação é usado quando o elemento de extensibilidade é importado. (Herdado de ServiceDescriptionFormatExtension) |
| Parent |
Obtém o pai do ServiceDescriptionFormatExtension. (Herdado de ServiceDescriptionFormatExtension) |
| Required |
Obtém ou define um valor que indica se é ServiceDescriptionFormatExtension necessário para a ação à qual se refere. (Herdado de ServiceDescriptionFormatExtension) |
| Verb |
Obtém ou define um valor que indica se a solicitação HTTP será feita usando o método "GET" ou "POST". |
Métodos
| Nome | Description |
|---|---|
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual. (Herdado de Object) |
| GetHashCode() |
Serve como a função hash predefinida. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Objectatual. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual. (Herdado de Object) |