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

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

Syntax

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

Parameters

namespaceURI

Type: System.StringSystem.StringSystem::String^

The namespace URI.

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 is null a null reference (Nothing in Visual Basic) nullptr.