Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft