Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NamespaceParserRegistry.RegisterParser(Type, String, String) Method

Associates a parser with a namespace.

[Visual Basic]
Public Overloads Shared Sub RegisterParser( _
   ByVal parserType As Type, _
   ByVal namespaceUri As String, _
   ByVal schemaLocation As String _
public static void RegisterParser(
   Type parserType,
   string namespaceUri,
   string schemaLocation


The Type of the parser that will be activated when the attendant namespaceUri is encountered.
The namespace with which to associate instance of the parser.
The location of the XML schema that should be used for validation of the XML elements that belong to the specified namespace (can be any valid Spring.NET resource URI).


Note    Parsers registered with the same namespaceUri as that of a parser that has previously been registered will overwrite the existing parser.


Exception Type Condition
ArgumentException If the parserType is not a Type that implements the INamespaceParser interface.
ArgumentNullException If parserType is a null reference (Nothing in Visual Basic).

See Also

NamespaceParserRegistry Class | Spring.Objects.Factory.Xml Namespace | NamespaceParserRegistry.RegisterParser Overload List