WebHttpBehavior Classe
Definição
Habilita o modelo de programação Web para um serviço da WCF (Windows Communication Foundation).Enables the Web programming model for a Windows Communication Foundation (WCF) service.
public ref class WebHttpBehavior : System::ServiceModel::Description::IEndpointBehavior
public class WebHttpBehavior : System.ServiceModel.Description.IEndpointBehavior
type WebHttpBehavior = class
interface IEndpointBehavior
Public Class WebHttpBehavior
Implements IEndpointBehavior
- Herança
-
WebHttpBehavior
- Derivado
- Implementações
Comentários
O WebHttpBehavior comportamento, quando usado em conjunto com a WebHttpBinding associação, permite que o WCF exponha e acesse os serviços de estilo da Web.The WebHttpBehavior behavior, when used in conjunction with the WebHttpBinding binding, enables WCF to expose and access Web style services. WebServiceHostadiciona automaticamente esse comportamento aos pontos de extremidade que usam o WebHttpBinding .WebServiceHost automatically adds this behavior to endpoints that use the WebHttpBinding.
Construtores
| WebHttpBehavior() |
Inicializa uma nova instância da classe WebHttpBehavior.Initializes a new instance of the WebHttpBehavior class. |
Propriedades
| AutomaticFormatSelectionEnabled |
Obtém ou define um valor que determina se a seleção automática de formato está habilitada.Gets or sets a value that determines if automatic format selection is enabled. |
| DefaultBodyStyle |
Obtém ou define o estilo de corpo de mensagem padrão.Gets or sets the default message body style. |
| DefaultOutgoingRequestFormat |
Obtém ou define o formato de solicitação de saída padrão.Gets or sets the default outgoing request format. |
| DefaultOutgoingResponseFormat |
Obtém ou define o formato de resposta de saída padrão.Gets or sets the default outgoing response format. |
| FaultExceptionEnabled |
Obtém ou define o sinalizador que especifica se uma FaultException é gerada quando ocorre um erro de servidor interno (código de status HTTP: 500).Gets or sets the flag that specifies whether a FaultException is generated when an internal server error (HTTP status code: 500) occurs. |
| HelpEnabled |
Obtém ou define um valor que determina se a página de Ajuda do WCF está habilitada.Gets or sets a value that determines if the WCF Help page is enabled. |
| JavascriptCallbackParameterName |
Obtém ou define o nome de parâmetro de retorno de chamada JavaScript.Gets or sets the JavaScript callback parameter name. |
Métodos
| AddBindingParameters(ServiceEndpoint, BindingParameterCollection) |
Implementar o método AddBindingParameters(ServiceEndpoint, BindingParameterCollection) para passar dados em runtime para associações a fim de dar suporte ao comportamento personalizado.Implements the AddBindingParameters(ServiceEndpoint, BindingParameterCollection) method to pass data at runtime to bindings to support custom behavior. |
| AddClientErrorInspector(ServiceEndpoint, ClientRuntime) |
Adiciona um inspetor de erro do cliente ao ponto de extremidade de serviço especificado.Adds a client error inspector to the specified service endpoint. |
| AddServerErrorHandlers(ServiceEndpoint, EndpointDispatcher) |
Substitua este método para alterar a maneira como são tratados os erros que ocorrem no serviço.Override this method to change the way errors that occur on the service are handled. |
| ApplyClientBehavior(ServiceEndpoint, ClientRuntime) |
Implementa o método ApplyClientBehavior(ServiceEndpoint, ClientRuntime) para ser compatível com modificação ou extensão do cliente em um ponto de extremidade.Implements the ApplyClientBehavior(ServiceEndpoint, ClientRuntime) method to support modification or extension of the client across an endpoint. |
| ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) |
Implementa o método ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) para ser compatível com modificação ou extensão do cliente em um ponto de extremidade.Implements the ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) method to support modification or extension of the client across an endpoint. |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetOperationSelector(ServiceEndpoint) |
Cria um novo objeto WebHttpDispatchOperationSelector.Creates a new WebHttpDispatchOperationSelector object. |
| GetQueryStringConverter(OperationDescription) |
Obtém o conversor de cadeia de caracteres de consulta.Gets the query string converter. |
| GetReplyClientFormatter(OperationDescription, ServiceEndpoint) |
Obtém o formatador de resposta no cliente para o ponto de extremidade e a operação de serviço especificados.Gets the reply formatter on the client for the specified endpoint and service operation. |
| GetReplyDispatchFormatter(OperationDescription, ServiceEndpoint) |
Obtém o formatador de resposta no serviço para o ponto de extremidade e a operação de serviço especificados.Gets the reply formatter on the service for the specified endpoint and service operation. |
| GetRequestClientFormatter(OperationDescription, ServiceEndpoint) |
Obtém o formatador de solicitação no cliente para a operação de serviço e o ponto de extremidade especificados.Gets the request formatter on the client for the specified service operation and endpoint. |
| GetRequestDispatchFormatter(OperationDescription, ServiceEndpoint) |
Obtém o formatador de solicitação no serviço para a operação de serviço e o ponto de extremidade de serviço especificados.Gets the request formatter on the service for the given service operation and service endpoint. |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
| Validate(ServiceEndpoint) |
Confirma que o ponto de extremidade atende aos requisitos para o modelo de programação Web.Confirms that the endpoint meets the requirements for the Web programming model. |
| ValidateBinding(ServiceEndpoint) |
Garante que a associação seja válida para uso com o modelo de Programação Web da WCF.Ensures the binding is valid for use with the WCF Web Programming Model. |
| ValidateOperation(OperationDescription) | |