Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

INamespacePrefixLookup Interface

.NET Framework 4.6 and 4.5

Represents a service that can return the recommended prefix for a XAML namespace mapping to consumers. Consumers might include design environments or serializers.

Namespace:  System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

type INamespacePrefixLookup =  interface end

The INamespacePrefixLookup type exposes the following members.

Public methodLookupPrefixReturns the recommended prefix for a specified XAML namespace identifier.

This interface represents the service that returns the prefix for a particular XAML namespace. A technology reports a preferred prefix for XAML namespace mapping as part of assembly-level information. This service retrieves that information.

The .NET Framework XAML Services implementation provides XmlnsPrefixAttribute as a mechanism for applying preferred prefix information at the assembly level. Existing service providers that provide the INamespacePrefixLookup service can read information from that attribute if information is available.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft