Export (0) Print
Expand All

NamespaceMapEntry Class

Provides information that the XamlTypeMapper uses for mapping between an XML namespace, a CLR namespace, and the assembly that contains the relevant types for that CLR namespace.

System::Object
  System.Windows.Markup::NamespaceMapEntry

Namespace:  System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml

public ref class NamespaceMapEntry

The NamespaceMapEntry type exposes the following members.

  NameDescription
Public methodNamespaceMapEntry()Initializes a new instance of the NamespaceMapEntry class.
Public methodNamespaceMapEntry(String, String, String)Initializes a new instance of the NamespaceMapEntry class, using provided XML namespace, CLR namespace, and assembly information.
Top

  NameDescription
Public propertyAssemblyNameGets or sets the assembly name that contains the types in the CLR namespace.
Public propertyClrNamespaceGets or sets the CLR namespace that contains the types being mapped.
Public propertyXmlNamespaceGets or sets the mapping prefix for the XML namespace being mapped to.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

This type is specific to the WPF implementation of XAML. If you use it in a general XAML implementation, you must include the WPF assemblies.

Alternative techniques that do not require including WPF assemblies include referencing the XAML schema context (available in a service provider context from IXamlSchemaContextProvider, or from XamlObjectWriter::SchemaContext from a XAML node loop or general XAML writer frame of reference.) The XAML schema context includes API for returning its assemblies, preferred prefix mappings, and XAML namespace information.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft