HttpAddressBinding Class

Definition

Represents an extensibility element added to a Port within an XML Web service. This class cannot be inherited.

C#
[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
Inheritance
Attributes

Examples

C#

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

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

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

Remarks

This class, through its Location property, specifies the base URI for the XML Web service. For more information about XML Web services, see XML Web Services Using ASP.NET. For more information about Web Services Description Language (WSDL), see the WSDL specification.

Constructors

HttpAddressBinding()

Initializes a new instance of the HttpAddressBinding class.

Properties

Handled

Gets or sets a value indicating whether the ServiceDescriptionFormatExtension is used by the import process when the extensibility element is imported.

(Inherited from ServiceDescriptionFormatExtension)
Location

Gets or sets a value representing the URL of the XML Web service.

Parent

Gets the parent of the ServiceDescriptionFormatExtension.

(Inherited from ServiceDescriptionFormatExtension)
Required

Gets or sets a value indicating whether the ServiceDescriptionFormatExtension is necessary for the action to which it refers.

(Inherited from ServiceDescriptionFormatExtension)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Toode Versioonid
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)