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

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

Syntax

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

Parameters

namespaceURI

Type: System.StringSystem.StringSystem::String^

The namespace URI.

locationHint

Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^

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.