ServiceDescriptionImporter.ServiceDescriptions Property

Definition

Gets the collection of ServiceDescription instances to be imported.

C#
public System.Web.Services.Description.ServiceDescriptionCollection ServiceDescriptions { get; }

Property Value

A ServiceDescriptionCollection instance that contains the ServiceDescription instances slated to be imported by the ServiceDescriptionImporter instance.

Examples

The following example illustrates the use of the ServiceDescriptions property.

C#
// Report on the service descriptions.
Console.WriteLine("Importing {0} service descriptions with {1} associated schemas.",
                  importer.ServiceDescriptions.Count, importer.Schemas.Count);

Remarks

As with any collection that forms a read-only property, members can be added to the collection, removed from the collection, or modified using the methods exposed by the collection. You can also use the AddServiceDescription method to add members to this collection.

Applies to

Produkt Verzie
.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