次の方法で共有


DiscoveryClientResultCollection.Contains(DiscoveryClientResult) メソッド

定義

DiscoveryClientResultCollection に特定の DiscoveryClientResult が格納されているかどうかを確認します。

public:
 bool Contains(System::Web::Services::Discovery::DiscoveryClientResult ^ value);
public bool Contains (System.Web.Services.Discovery.DiscoveryClientResult value);
member this.Contains : System.Web.Services.Discovery.DiscoveryClientResult -> bool
Public Function Contains (value As DiscoveryClientResult) As Boolean

パラメーター

戻り値

DiscoveryClientResultDiscoveryClientResultCollection に存在する場合は true。それ以外の場合は false

if ( myDiscoveryClientResultCollection->Contains( myDiscoveryClientResult ) )
{
   Console::WriteLine( "The collection contains the specified "
   "DiscoveryClientResult instance." );
}
if(myDiscoveryClientResultCollection.Contains(
    myDiscoveryClientResult))
{
    Console.WriteLine(
        "The collection contains the specified " +
        "DiscoveryClientResult instance.");
}
If myDiscoveryClientResultCollection.Contains( _ 
    myDiscoveryClientResult) Then

    Console.WriteLine( _
        "The collection contains the specified " & _
        "DiscoveryClientResult' instance.")

End If

適用対象

こちらもご覧ください