This documentation is archived and is not being maintained.

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)

public virtual CodeExpression ImportDefaultValue (
	string value,
	string type
)
public CodeExpression ImportDefaultValue (
	String value, 
	String type
)
public function ImportDefaultValue (
	value : String, 
	type : String
) : CodeExpression
Not applicable.

Parameters

value

The value found in the original XSD.

type

The XSD type name.

Return Value

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: