ServiceCollection::Remove Method (Service^)
.NET Framework (current version)
Removes the first occurrence of the specified Service from the ServiceCollection.
Assembly: System.Web.Services (in System.Web.Services.dll)
// Read a ServiceDescription from existing WSDL. ServiceDescription^ myServiceDescription = ServiceDescription::Read( "Input_CS.wsdl" ); myServiceDescription->TargetNamespace = "http://tempuri.org/"; // Get the ServiceCollection of the ServiceDescription. ServiceCollection^ myServiceCollection = myServiceDescription->Services; // Remove the Service at index 0 of the collection. myServiceCollection->Remove( myServiceDescription->Services[ 0 ] );
.NET Framework
Available since 1.1
Available since 1.1
Show: