SchemaImporterExtensionCollection.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified importer extension to the collection.
Overloads
Add(SchemaImporterExtension) |
Adds the specified importer extension to the collection. |
Add(String, Type) |
Adds the specified importer extension to the collection. The name parameter allows you to supply a custom name for the extension. |
Add(SchemaImporterExtension)
Adds the specified importer extension to the collection.
public:
int Add(System::Xml::Serialization::Advanced::SchemaImporterExtension ^ extension);
public int Add (System.Xml.Serialization.Advanced.SchemaImporterExtension extension);
member this.Add : System.Xml.Serialization.Advanced.SchemaImporterExtension -> int
Public Function Add (extension As SchemaImporterExtension) As Integer
Parameters
- extension
- SchemaImporterExtension
The SchemaImporterExtensionCollection to add.
Returns
The index of the added extension.
Applies to
Add(String, Type)
Adds the specified importer extension to the collection. The name parameter allows you to supply a custom name for the extension.
public:
int Add(System::String ^ name, Type ^ type);
public int Add (string name, Type type);
member this.Add : string * Type -> int
Public Function Add (name As String, type As Type) As Integer
Parameters
- name
- String
A custom name for the extension.
- type
- Type
The SchemaImporterExtensionCollection to add.
Returns
The index of the newly added item.
Exceptions
The value of type does not inherit from SchemaImporterExtensionCollection.