Export (0) Print
Expand All

SchemaImporterExtension::ImportDefaultValue Method

Allows you to specify the default value for the XSD type being imported.

Namespace:  System.Xml.Serialization.Advanced
Assembly:  System.Xml (in System.Xml.dll)

virtual CodeExpression^ ImportDefaultValue(
	String^ value, 
	String^ type


Type: System::String

The value found in the original XSD.

Type: System::String

The XSD type name.

Return Value

Type: System.CodeDom::CodeExpression
A CodeExpression setting the new default value.

In order to control the generation of the code, you must use the classes found in the System.CodeDom namespace. For more information, see Using the CodeDOM and CodeDOM Quick Reference.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft