Język

WebHttpElement Klasa

Definicja

WebHttpBehavior Włącza dla punktu końcowego za pośrednictwem konfiguracji.

public ref class WebHttpElement sealed : System::ServiceModel::Configuration::BehaviorExtensionElement
public sealed class WebHttpElement : System.ServiceModel.Configuration.BehaviorExtensionElement
type WebHttpElement = class
    inherit BehaviorExtensionElement
Public NotInheritable Class WebHttpElement
Inherits BehaviorExtensionElement
Dziedziczenie
Dziedziczenie

Przykłady

Ten przykład zwraca typ WebHttpElement.

using System;  
using System.ServiceModel;  
using System.ServiceModel.Web;  
using System.ServiceModel.Configuration;  

    class Program  
    {  
        static void Main(string[] args)  
        {  
            WebHttpElement webHttpElement = new WebHttpElement();  
            Console.WriteLine("The type is: {0}", webHttpElement.BehaviorType);  
            Console.WriteLine("Press <ENTER> to terminate the program.");  
            Console.ReadLine();  
        }  
    }  

Uwagi

Jest WebHttpElement to BehaviorExtensionElement podtyp, który może służyć do uwzględnienia WebHttpBehavior elementu w punkcie końcowym za pośrednictwem konfiguracji. Zachowanie WebHttpBehavior, gdy jest używane w połączeniu z powiązaniem WebHttpBinding, umożliwia model programowania sieci Web dla usługi Windows Communication Foundation (WCF). Należy pamiętać, że to WebServiceHost zachowanie automatycznie dodaje do punktów końcowych korzystających z elementu WebHttpBinding.

Konstruktory

Nazwa Opis
WebHttpElement()

Inicjuje nowe wystąpienie klasy WebHttpElement.

Właściwości

Nazwa Opis
AutomaticFormatSelectionEnabled

Pobiera lub ustawia wartość wskazującą, czy format wiadomości można wybrać automatycznie.

BehaviorType

Pobiera typ zachowania włączonego przez ten element konfiguracji.

ConfigurationElementName

Pobiera nazwę tego elementu konfiguracji.

(Odziedziczone po ServiceModelExtensionElement)
CurrentConfiguration

Pobiera odwołanie do wystąpienia najwyższego poziomu Configuration, które reprezentuje hierarchię konfiguracji, do którego należy bieżące wystąpienie ConfigurationElement.

(Odziedziczone po ConfigurationElement)
DefaultBodyStyle

Pobiera lub ustawia domyślny styl treści wiadomości.

DefaultOutgoingResponseFormat

Pobiera lub ustawia domyślny format odpowiedzi wychodzącej.

ElementInformation

Pobiera obiekt ElementInformation zawierający informacje i funkcje obiektu ConfigurationElement, które nie można dostosowywać.

(Odziedziczone po ConfigurationElement)
ElementProperty

Pobiera obiekt ConfigurationElementProperty reprezentujący sam obiekt ConfigurationElement.

(Odziedziczone po ConfigurationElement)
EvaluationContext

Pobiera obiekt ContextInformation dla obiektu ConfigurationElement.

(Odziedziczone po ConfigurationElement)
FaultExceptionEnabled

Pobiera lub ustawia flagę określającą, czy występuje błąd FaultException w przypadku wystąpienia wewnętrznego błędu serwera (kod stanu HTTP: 500).

HasContext

Pobiera wartość wskazującą, czy właściwość CurrentConfiguration jest null.

(Odziedziczone po ConfigurationElement)
HelpEnabled

Pobiera lub ustawia wartość wskazującą, czy pomoc jest włączona.

Item[ConfigurationProperty]

Pobiera lub ustawia właściwość lub atrybut tego elementu konfiguracji.

(Odziedziczone po ConfigurationElement)
Item[String]

Pobiera lub ustawia właściwość, atrybut lub element podrzędny tego elementu konfiguracji.

(Odziedziczone po ConfigurationElement)
LockAllAttributesExcept

Pobiera kolekcję zablokowanych atrybutów.

(Odziedziczone po ConfigurationElement)
LockAllElementsExcept

Pobiera kolekcję zablokowanych elementów.

(Odziedziczone po ConfigurationElement)
LockAttributes

Pobiera kolekcję zablokowanych atrybutów.

(Odziedziczone po ConfigurationElement)
LockElements

Pobiera kolekcję zablokowanych elementów.

(Odziedziczone po ConfigurationElement)
LockItem

Pobiera lub ustawia wartość wskazującą, czy element jest zablokowany.

(Odziedziczone po ConfigurationElement)
Properties

Pobiera kolekcję właściwości.

(Odziedziczone po ConfigurationElement)

Metody

Nazwa Opis
CopyFrom(ServiceModelExtensionElement)

Kopiuje zawartość określonego elementu konfiguracji do tego elementu konfiguracji.

(Odziedziczone po ServiceModelExtensionElement)
CreateBehavior()

Tworzy rozszerzenie zachowania na podstawie bieżących ustawień konfiguracji.

(Odziedziczone po BehaviorExtensionElement)
DeserializeElement(XmlReader, Boolean)

Odczytuje kod XML z pliku konfiguracji.

(Odziedziczone po ConfigurationElement)
Equals(Object)

Porównuje bieżące wystąpienie ConfigurationElement z określonym obiektem.

(Odziedziczone po ConfigurationElement)
GetHashCode()

Pobiera unikatową wartość reprezentującą bieżące wystąpienie ConfigurationElement.

(Odziedziczone po ConfigurationElement)
GetTransformedAssemblyString(String)

Zwraca przekształconą wersję określonej nazwy zestawu.

(Odziedziczone po ConfigurationElement)
GetTransformedTypeString(String)

Zwraca przekształconą wersję określonej nazwy typu.

(Odziedziczone po ConfigurationElement)
GetType()

Pobiera Type bieżącego wystąpienia.

(Odziedziczone po Object)
Init()

Ustawia obiekt ConfigurationElement na stan początkowy.

(Odziedziczone po ConfigurationElement)
InitializeDefault()

Służy do inicjowania domyślnego zestawu wartości dla obiektu ConfigurationElement.

(Odziedziczone po ConfigurationElement)
IsModified()

Pobiera wartość określającą, czy ten element konfiguracji został zmodyfikowany.

(Odziedziczone po ServiceModelExtensionElement)
IsReadOnly()

Pobiera wartość wskazującą, czy obiekt ConfigurationElement jest tylko do odczytu.

(Odziedziczone po ConfigurationElement)
ListErrors(IList)

Dodaje błędy nieprawidłowej właściwości w tym obiekcie ConfigurationElement i we wszystkich elementach podrzędnych do przekazanej listy.

(Odziedziczone po ConfigurationElement)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Object.

(Odziedziczone po Object)
OnDeserializeUnrecognizedAttribute(String, String)

Pobiera wartość wskazującą, czy podczas deserializacji napotkano nieznany atrybut.

(Odziedziczone po ConfigurationElement)
OnDeserializeUnrecognizedElement(String, XmlReader)

Pobiera wartość wskazującą, czy podczas deserializacji napotkano nieznany element.

(Odziedziczone po ConfigurationElement)
OnRequiredPropertyNotFound(String)

Zgłasza wyjątek, gdy nie można odnaleźć wymaganej właściwości.

(Odziedziczone po ConfigurationElement)
PostDeserialize()

Wywoływana po deserializacji.

(Odziedziczone po ConfigurationElement)
PreSerialize(XmlWriter)

Wywoływana przed serializacji.

(Odziedziczone po ConfigurationElement)
Reset(ConfigurationElement)

Resetuje stan wewnętrzny tego obiektu elementu konfiguracji, w tym blokady i kolekcje właściwości.

(Odziedziczone po ServiceModelExtensionElement)
ResetModified()

Resetuje wartość metody IsModified(), aby false po zaimplementowaniu w klasie pochodnej.

(Odziedziczone po ConfigurationElement)
SerializeElement(XmlWriter, Boolean)

Zapisuje zawartość tego elementu konfiguracji w pliku konfiguracji.

(Odziedziczone po ServiceModelExtensionElement)
SerializeToXmlElement(XmlWriter, String)

Zapisuje zewnętrzne tagi tego elementu konfiguracji do pliku konfiguracji po zaimplementowaniu w klasie pochodnej.

(Odziedziczone po ConfigurationElement)
SetPropertyValue(ConfigurationProperty, Object, Boolean)

Ustawia właściwość na określoną wartość.

(Odziedziczone po ConfigurationElement)
SetPropertyValueIfNotDefaultValue<T>(String, T)

Ustawia wartość właściwości elementu konfiguracji, jeśli wartość nie jest wartością domyślną.

(Odziedziczone po ServiceModelConfigurationElement)
SetReadOnly()

Ustawia właściwość IsReadOnly() dla obiektu ConfigurationElement i wszystkich podelementów.

(Odziedziczone po ConfigurationElement)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)
Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)

Modyfikuje obiekt ConfigurationElement, aby usunąć wszystkie wartości, które nie powinny być zapisywane.

(Odziedziczone po ConfigurationElement)

Dotyczy