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)

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