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

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

Syntax

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

Parameters

namespaceURI

Type: System.StringSystem.StringSystem::String^

The namespace URI.

locationHint

Type: System.StringSystem.StringSystem::String^

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.