DiscoveryClientResultCollection.Contains(DiscoveryClientResult) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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
參數
傳回
如果在 DiscoveryClientResultCollection 中找到 DiscoveryClientResult,則為 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