Поделиться через


HttpAddressBinding Класс

Определение

Представляет элемент расширяемости, добавленный в Port веб-службу XML. Этот класс не может быть унаследован.

public ref class HttpAddressBinding sealed : System::Web::Services::Description::ServiceDescriptionFormatExtension
[System.Web.Services.Configuration.XmlFormatExtension("address", "http://schemas.xmlsoap.org/wsdl/http/", typeof(System.Web.Services.Description.Port))]
public sealed class HttpAddressBinding : System.Web.Services.Description.ServiceDescriptionFormatExtension
[<System.Web.Services.Configuration.XmlFormatExtension("address", "http://schemas.xmlsoap.org/wsdl/http/", typeof(System.Web.Services.Description.Port))>]
type HttpAddressBinding = class
    inherit ServiceDescriptionFormatExtension
Public NotInheritable Class HttpAddressBinding
Inherits ServiceDescriptionFormatExtension
Наследование
Атрибуты

Примеры

// Create the 'HttpAddressBinding' object.
HttpAddressBinding^ postAddressBinding = gcnew HttpAddressBinding;
postAddressBinding->Location = "http://localhost/Service1.asmx";

// Add the 'HttpAddressBinding' to the 'Port'.
postPort->Extensions->Add( postAddressBinding );

// Create the 'HttpAddressBinding' object.
HttpAddressBinding postAddressBinding = new HttpAddressBinding();

postAddressBinding.Location = "http://localhost/Service1.asmx";

// Add the 'HttpAddressBinding' to the 'Port'.
postPort.Extensions.Add(postAddressBinding);
' Create the 'HttpAddressBinding' object.
Dim postAddressBinding As New HttpAddressBinding()

postAddressBinding.Location = "http://localhost/Service1.asmx"

' Add the 'HttpAddressBinding' to the 'Port'.
postPort.Extensions.Add(postAddressBinding)

Комментарии

Этот класс, используя его Location свойство, задает базовый универсальный код ресурса (URI) для веб-службы XML. Дополнительные сведения о веб-службах XML см. в веб-службах XML с помощью ASP.NET. Дополнительные сведения о языке описания веб-служб (WSDL) см. в спецификации WSDL .

Конструкторы

Имя Описание
HttpAddressBinding()

Инициализирует новый экземпляр класса HttpAddressBinding.

Свойства

Имя Описание
Handled

Возвращает или задает значение, указывающее, используется ли ServiceDescriptionFormatExtension процесс импорта при импорте элемента расширяемости.

(Унаследовано от ServiceDescriptionFormatExtension)
Location

Возвращает или задает значение, представляющее URL-адрес веб-службы XML.

Parent

Возвращает родительский ServiceDescriptionFormatExtensionобъект .

(Унаследовано от ServiceDescriptionFormatExtension)
Required

Возвращает или задает значение, указывающее, требуется ли ServiceDescriptionFormatExtension действие, к которому он ссылается.

(Унаследовано от ServiceDescriptionFormatExtension)

Методы

Имя Описание
Equals(Object)

Определяет, равен ли указанный объект текущему объекту.

(Унаследовано от Object)
GetHashCode()

Служит хэш-функцией по умолчанию.

(Унаследовано от Object)
GetType()

Возвращает Type текущего экземпляра.

(Унаследовано от Object)
MemberwiseClone()

Создает неглубокую копию текущей Object.

(Унаследовано от Object)
ToString()

Возвращает строку, представляющую текущий объект.

(Унаследовано от Object)

Применяется к