Прочитај на енглеском Уреди

Делите путем


Port.Extensions Property

Definition

Gets the collection of extensibility elements associated with the Port.

C#
public System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection Extensions { get; }
C#
public override System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection Extensions { get; }

Property Value

The collection of extensibility elements associated with the port.

Examples

C#
// Create a Port.
Port postPort = new Port();
postPort.Name = "PortServiceHttpPost";
postPort.Binding = new XmlQualifiedName("s0:PortServiceHttpPost");

// Create an HttpAddressBinding.
HttpAddressBinding postAddressBinding = new HttpAddressBinding();
postAddressBinding.Location =
   "http://localhost/PortClass/PortService_cs.asmx";

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

Applies to

Производ Верзије
.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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)