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

Adds a location hint for the specified namespace URI to this LocationHintCollectionLocationHintCollectionLocationHintCollection.

Syntax

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

Parameters

namespaceURI

Type: System.StringSystem.StringSystem::String^

The namespace URI.

locationHint

Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^

The location hint to add.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the location hint is added to the LocationHintCollectionLocationHintCollectionLocationHintCollection; falseFalsefalse if the location hint was already present.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException namespaceURI or locationHint is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptionlocationHint was not an absolute URI.