Name

SoapIncludeAttribute — System.Xml.Serialization (system.xml.dll) CF 1.0  class 

Synopsis

public class SoapIncludeAttribute : Attribute {
// Public Constructors
   public SoapIncludeAttribute( Type type);  
// Public Instance Properties
   public Type Type{set; get; } 
}

This attribute is used to change the type of an object that is serialized to SOAP to a specific subclass. For example, a type specified as a System.Object in the code may be serialized as a specific subclass such as System.String by setting the Type property to typeof(System.String). Like all the SOAP attributes, it can be applied in code or via the SoapAttributeOverrides object.

Hierarchy

System.ObjectSystem.AttributeSoapIncludeAttribute

Valid On

Class, Struct, Method

Get .NET & XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.