OperationMessageCollection.Contains メソッド
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文Dim instance As OperationMessageCollection Dim operationMessage As OperationMessage Dim returnValue As Boolean returnValue = instance.Contains(operationMessage)
戻り値
operationMessage パラメータが OperationMessageCollection のメンバである場合は true。それ以外の場合は false。
使用例If myOperationMessageCollection.Contains(myOperationMessage) _ = True Then Dim myIndex As Integer = _ myOperationMessageCollection.IndexOf(myOperationMessage) Console.WriteLine(" The index of the Add operation " & _ "message in the collection is : " & myIndex.ToString()) End If
if(myOperationMessageCollection.Contains(myOperationMessage) == true ) { int myIndex = myOperationMessageCollection.IndexOf(myOperationMessage); Console.WriteLine(" The index of the Add operation " + "message in the collection is : " + myIndex); }
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- OperationMessageCollection.Contains メソッドのページへのリンク