ServiceCollection.Remove メソッド
アセンブリ: System.Web.Services (system.web.services.dll 内)



' Read a ServiceDescription from existing WSDL. Dim myServiceDescription As ServiceDescription = _ ServiceDescription.Read("Input.vb.wsdl") myServiceDescription.TargetNamespace = "http://tempuri.org/" ' Get the ServiceCollection of the ServiceDescription. Dim myServiceCollection As ServiceCollection = _ myServiceDescription.Services ' Remove the Service at index 0 of the collection. myServiceCollection.Remove(myServiceDescription.Services.Item(0))
// 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]);
// 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 ] );
// Read a ServiceDescription from existing WSDL. ServiceDescription myServiceDescription = ServiceDescription. Read("Input_JSL.wsdl"); myServiceDescription.set_TargetNamespace("http://tempuri.org/"); // Get the ServiceCollection of the ServiceDescription. ServiceCollection myServiceCollection = myServiceDescription. get_Services(); // Remove the Service at index 0 of the collection. myServiceCollection.Remove(myServiceDescription.get_Services(). get_Item(0));

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- ServiceCollection.Remove メソッドのページへのリンク