System.Xml
2.0.0.0
4.0.0.0
System.Attribute
System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Interface | System.AttributeTargets.All)
The main purpose of the is to enable the class to return a schema when queried by the Web Services Description Language tool (WSDL.exe), or when using the Add Web Reference feature of vsprvs. You can control the actual schema for the type in the static method.
The target class of the attribute must implement the interface.
The property returns the name of a static method through reflection. The method, which must be implemented, must take a single parameter, an object, which the method populates with an object. The method must also return an object that identifies the data type.
Returning Anonymous Types
An anonymous complex type cannot be created using a method that returns . Because an anonymous type has no name, and you cannot add an anonymous type to a schema, the anonymous type must be returned as an .
When applied to a type, stores the name of a static method of the type that returns an XML schema and a (or for anonymous types) that controls the serialization of the type.
Constructor
2.0.0.0
4.0.0.0
To be added.
Initializes a new instance of the class, taking the name of the static method that supplies the type's XML schema.
The name of the static method that must be implemented.
Property
2.0.0.0
4.0.0.0
System.Boolean
To be added.
The target class of the attribute can be any class. This can be achieved in the following ways:
-
The method named by the attribute can return null.
-
Set the value of this property to true to prevent the method from being called.
Gets or sets a value that determines whether the target class is a wildcard, or that the schema for the class has contains only an xs:any element.
Property
2.0.0.0
4.0.0.0
System.String
To be added.
To be added.
Gets the name of the static method that supplies the type's XML schema and the name of its XML Schema data type.