LocationHintCollection.Add Method (string, AnyUri[])LocationHintCollection.Add Method (String, AnyUri())LocationHintCollection::Add Method (String^, array<AnyUri^>^)

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

Syntax

Public Sub Add( _
    namespaceURI As String, _
    locationHints As AnyUri[] _
)
public void Add(
    string namespaceURI,
    AnyUri[] locationHints
)
public:
void Add(
    String^ namespaceURI, 
    array<AnyUri^> locationHints
)
 

Parameters

namespaceURI

Type: System.StringSystem.StringSystem::String^

The namespace URI.

locationHints

Type: XmlPrime.AnyUri[]XmlPrime.AnyUri()array<XmlPrime::AnyUri^>^

The location hint to add.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException namespaceURI or locationHints is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentException One of the members of locationHints was null a null reference (Nothing in Visual Basic) nullptr, or was not an absolute URI.

Remarks

If any of the hints in locationHints are already present for the specified namespace, then they are ignored.