Include Attribute(Type) Constructor
Initializes a new instance of the SoapIncludeAttribute class using the specified type.
public: SoapIncludeAttribute(Type ^ type);
public SoapIncludeAttribute (Type type);
new System.Xml.Serialization.SoapIncludeAttribute : Type -> System.Xml.Serialization.SoapIncludeAttribute
The type of the object to include.
The following example applies the SoapIncludeAttribute twice to an XML Web services method. The method returns an object of type
Vehicle (a base class). The SoapIncludeAttribute allows the method to return instances of classes derived from the
Apply multiple instances of the SoapIncludeAttribute to a field or property that returns either an array of objects, an ArrayList that contains a collection of objects, or an object that can return multiple types. Set the Type property for each type that you want the field or property to contain.