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

Dim instance As PortTypeCollection Dim array As PortType() Dim index As Integer instance.CopyTo(array, index)

Dim myPortTypeCollection As PortTypeCollection Dim myServiceDescription As ServiceDescription = _ ServiceDescription.Read("MathService_VB.wsdl") myPortTypeCollection = myServiceDescription.PortTypes Dim noOfPortTypes As Integer = myServiceDescription.PortTypes.Count Console.WriteLine( _ ControlChars.NewLine + "Total number of PortTypes: " & _ myServiceDescription.PortTypes.Count.ToString()) ' Copy the collection into an array. Dim myPortTypeArray(noOfPortTypes-1) As PortType myPortTypeCollection.CopyTo(myPortTypeArray, 0) ' Display names of all PortTypes. Dim i As Integer For i = 0 To noOfPortTypes - 1 Console.WriteLine("PortType Name: " + myPortTypeArray(i).Name) Next i myServiceDescription.Write("MathService_New.wsdl")
PortTypeCollection myPortTypeCollection; ServiceDescription myServiceDescription = ServiceDescription.Read("MathService_CS.wsdl"); myPortTypeCollection = myServiceDescription.PortTypes; int noOfPortTypes = myServiceDescription.PortTypes.Count; Console.WriteLine("\nTotal number of PortTypes: " + myServiceDescription.PortTypes.Count); // Copy the collection into an array. PortType[] myPortTypeArray = new PortType[noOfPortTypes]; myPortTypeCollection.CopyTo(myPortTypeArray, 0); // Display names of all PortTypes. for(int i = 0; i < noOfPortTypes; i++) Console.WriteLine("PortType name: " + myPortTypeArray[i].Name); myServiceDescription.Write("MathService_New.wsdl");
PortTypeCollection^ myPortTypeCollection; ServiceDescription^ myServiceDescription = ServiceDescription::Read( "MathService_CS.wsdl" ); myPortTypeCollection = myServiceDescription->PortTypes; int noOfPortTypes = myServiceDescription->PortTypes->Count; Console::WriteLine( "\nTotal number of PortTypes: {0}", myServiceDescription->PortTypes->Count ); // Copy the collection into an array. array<PortType^>^ myPortTypeArray = gcnew array<PortType^>(noOfPortTypes); myPortTypeCollection->CopyTo( myPortTypeArray, 0 ); // Display names of all PortTypes. for ( int i = 0; i < noOfPortTypes; i++ ) { Console::WriteLine( "PortType name: {0}", myPortTypeArray[ i ]->Name ); } myServiceDescription->Write( "MathService_New.wsdl" );

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPortTypeCollection.CopyTo メソッドを検索する場合は、下記のリンクをクリックしてください。

- PortTypeCollection.CopyTo メソッドのページへのリンク