DiscoveryClientDocumentCollection.Contains(String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 URL을 DiscoveryClientDocumentCollection 가진 개체가 포함되어 있는지 여부를 확인합니다.
public:
bool Contains(System::String ^ url);
public bool Contains(string url);
member this.Contains : string -> bool
Public Function Contains (url As String) As Boolean
매개 변수
- url
- String
에서 찾을 문서의 URL입니다 DiscoveryClientDocumentCollection.
반품
true
DiscoveryClientDocumentCollection 지정된 URL이 있는 개체가 포함되어 있으면 이고, false그렇지 않으면 .
예외
url은 null입니다.
예제
다음 코드 예제에서는 메서드를 Contains 호출하여 검색 문서에 변수에 저장된 StringUrl URL이 있는 멤버가 포함되어 있는지 확인합니다.
bool myContains = myDiscoveryClientDocumentCollection->Contains( myStringUrl );
if ( myContains )
Console::WriteLine( "The discovery document {0} is present in the Collection", myStringUrl );
bool myContains = myDiscoveryClientDocumentCollection.Contains(myStringUrl);
if (myContains)
Console.WriteLine("The discovery document {0} is present in the"
+ " Collection",myStringUrl);
Dim myContains As Boolean = myDiscoveryClientDocumentCollection.Contains(myStringUrl)
If myContains Then
Console.WriteLine("The discovery document {0} is present in the Collection", _
myStringUrl)
End If