Bewerken

Share via


SchemaImporterExtensionCollection.Add Method

Definition

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

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.

Returns

The index of the newly added item.

Exceptions

The value of type does not inherit from SchemaImporterExtensionCollection.

Applies to