Redigera

Dela via


NamespaceMapEntry Constructors

Definition

Initializes a new instance of the NamespaceMapEntry class.

Overloads

NamespaceMapEntry()

Initializes a new instance of the NamespaceMapEntry class.

NamespaceMapEntry(String, String, String)

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

NamespaceMapEntry()

Initializes a new instance of the NamespaceMapEntry class.

public:
 NamespaceMapEntry();
public NamespaceMapEntry ();
Public Sub New ()

See also

Applies to

NamespaceMapEntry(String, String, String)

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

public:
 NamespaceMapEntry(System::String ^ xmlNamespace, System::String ^ assemblyName, System::String ^ clrNamespace);
public NamespaceMapEntry (string xmlNamespace, string assemblyName, string clrNamespace);
new System.Windows.Markup.NamespaceMapEntry : string * string * string -> System.Windows.Markup.NamespaceMapEntry
Public Sub New (xmlNamespace As String, assemblyName As String, clrNamespace As String)

Parameters

xmlNamespace
String

The mapping prefix for the XML namespace.

assemblyName
String

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

clrNamespace
String

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

Exceptions

xmlNamespace is null

-or-

assemblyName is null

-or-

clrNamespace is null.

Remarks

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.

See also

Applies to