SchemaImporterExtensionCollection.Add Method (String, Type)

 

Adds the specified importer extension to the collection. The name parameter allows you to supply a custom name for the extension.

Namespace:   System.Xml.Serialization.Advanced
Assembly:  System.Xml (in System.Xml.dll)

public int Add(
	string name,
	Type type
)

Parameters

name
Type: System.String

A custom name for the extension.

type
Type: System.Type

The SchemaImporterExtensionCollection to add.

Return Value

Type: System.Int32

The index of the newly added item.

Exception Condition
ArgumentException

The value of type does not inherit from SchemaImporterExtensionCollection.

.NET Framework
Available since 2.0
Return to top
Show: