LocationHintCollection.Contains Method (string, string)LocationHintCollection.Contains Method (String, String)LocationHintCollection::Contains Method (String^, String^)

Determines whether the LocationHintCollectionLocationHintCollectionLocationHintCollection already contains location hints for the specified namespace URI.

Syntax

Public Function Contains( _
    namespaceURI As String, _
    locationHint As String _
) As Boolean
public bool Contains(
    string namespaceURI,
    string locationHint
)
public:
bool Contains(
    String^ namespaceURI, 
    String^ locationHint
)
 

Parameters

namespaceURI

Type: System.StringSystem.StringSystem::String^

The namespace URI.

locationHint

Type: System.StringSystem.StringSystem::String^

The location hint.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the LocationHintCollectionLocationHintCollectionLocationHintCollection already contains the specified location hint for the specified namespace URI; otherwise, falseFalsefalse.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException namespaceURI or locationHint is null a null reference (Nothing in Visual Basic) nullptr.