XamlSchemaContext.TryGetCompatibleXamlNamespace(String, String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the success or failure of a request for a compatible XAML namespace. A successful request reports that XAML namespace as an out parameter.
public:
virtual bool TryGetCompatibleXamlNamespace(System::String ^ xamlNamespace, [Runtime::InteropServices::Out] System::String ^ % compatibleNamespace);
public virtual bool TryGetCompatibleXamlNamespace(string xamlNamespace, out string compatibleNamespace);
abstract member TryGetCompatibleXamlNamespace : string * string -> bool
override this.TryGetCompatibleXamlNamespace : string * string -> bool
Public Overridable Function TryGetCompatibleXamlNamespace (xamlNamespace As String, ByRef compatibleNamespace As String) As Boolean
- xamlNamespace
- String
The xmlns
string for the XAML namespace to be checked for a compatible result.
- compatibleNamespace
- 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
.
true
if compatibleNamespace
contains a usable result; otherwise, false
.
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.
Product | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: