AnyUri.TryCreate Method (string, out AnyUri)AnyUri.TryCreate Method (String, ByRef AnyUri)AnyUri::TryCreate Method (String^, AnyUri^%)
Creates a new AnyUriAnyUriAnyUri from its lexical value. A return value indicates whether the conversion
succeeded or failed.
Parameters
- uriString
Type: System.StringSystem.StringSystem::String^
The lexical representation of the URI.
- result
Type: out XmlPrime.AnyUriByRef XmlPrime.AnyUriXmlPrime::AnyUri^%
When this method returns, contains a AnyUriAnyUriAnyUri constructed from uriString, or
nulla null reference (Nothingin Visual Basic)nullptrif creation failed.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
trueTruetrue if the AnyUriAnyUriAnyUri was successfully created; otherwise
falseFalsefalse.
Exceptions
| Exception | Condition |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException | uriString is null
a null reference (Nothing in Visual Basic)
nullptr |
Remarks
If uriString is not a valid URI, then the string is percent encoded and another attempt is made to parse it.
