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

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

Syntax

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

Parameters

namespaceURI

Type: System.StringSystem.StringSystem::String^

The namespace URI.

locationHints

Type: System.String[]System.String()array<System::String^>^

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.

Remarks

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