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.
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
| Exception | Condition |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
namespaceURI or locationHint is null
a null reference (Nothing in Visual Basic)
nullptr.
|
| ArgumentExceptionArgumentExceptionArgumentException | locationHint was not an absolute URI. |
