XdmModule.NativeModule Method (Assembly, string)XdmModule.NativeModule Method (Assembly, String)XdmModule::NativeModule Method (Assembly^, String^)

Returns a module defined by a native .NET type located within the specified assembly.

Syntax

Public Shared Function NativeModule( _
    assembly As System.Reflection.Assembly, _
    targetNamespace As String _
) As XdmModule
public static XdmModule NativeModule(
    System.Reflection.Assembly assembly,
    string targetNamespace
)
public:
static XdmModule^ NativeModule(
    System.Reflection::Assembly^ assembly, 
    String^ targetNamespace
)
 

Parameters

assembly

Type: System.Reflection.AssemblySystem.Reflection.AssemblySystem.Reflection::Assembly^

The assembly containing annotated types.

targetNamespace

Type: System.StringSystem.StringSystem::String^

The target namespace.

Return Value

Type: XmlPrime.XdmModuleXmlPrime.XdmModuleXmlPrime::XdmModule^

A new instance of XdmModuleXdmModuleXdmModule containing functions representing methods from the TypeTypeType which is annotated with the specified targetNamespace if one exists; otherwise null a null reference (Nothing in Visual Basic) nullptr.