This documentation is archived and is not being maintained.

SchemaImporterExtension.ImportDefaultValue Method

Note: This method is new in the .NET Framework version 2.0.

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

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: