XamlSchemaContext::TryGetCompatibleXamlNamespace Method (String^, String^%)
Returns the success or failure of a request for a compatible XAML namespace. A successful request reports that XAML namespace as an out parameter.
Assembly: System.Xaml (in System.Xaml.dll)
public: virtual bool TryGetCompatibleXamlNamespace( String^ xamlNamespace, [OutAttribute] String^% compatibleNamespace )
Parameters
- xamlNamespace
-
Type:
System::String^
The xmlns string for the XAML namespace to be checked for a compatible result.
- compatibleNamespace
-
Type:
System::String^%
When this method returns, the xmlns string for a compatible XAML namespace request. This might be identical to xamlNamespace if the method returns false.
Return Value
Type: System::Booleantrue if compatibleNamespace contains a usable result; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | xamlNamespace is null. |
Internally, this method uses the following lookup order:
An internally implemented compatibility dictionary, which may have been populated by an earlier lookup.
The XmlnsCompatibleWithAttribute parameter evaluation.
If no other compatible namespace is discovered and this method returns false, the compatibleNamespace parameter output might have the same value as the xamlNamespace input.
Available since 4.0