NamespaceMapEntry Constructor (String, String, String)

 

Initializes a new instance of the NamespaceMapEntry class, using provided XML namespace, CLR namespace, and assembly information.

Namespace:   System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)

public NamespaceMapEntry(
	string xmlNamespace,
	string assemblyName,
	string clrNamespace
)

Parameters

xmlNamespace
Type: System.String

The mapping prefix for the XML namespace.

assemblyName
Type: System.String

The assembly that contains the CLR namespace and types to map to the XML namespace.

clrNamespace
Type: System.String

The CLR namespace in the assembly that contains the relevant types.

Exception Condition
ArgumentNullException

xmlNamespace is null

-or-

assemblyName is null

-or-

clrNamespace is null.

Use the "simple name" form for assemblyName. In particular, do not specify pathing, and do not include the file extension. This is analogous to the form that might be reported by AssemblyName.Name. Paths are specified separately; see XamlTypeMapper.SetAssemblyPath.

.NET Framework
Available since 3.0
Return to top
Show: