SchemaImporterExtension.ImportDefaultValue(String, String) Method

Definition

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

C#
public virtual System.CodeDom.CodeExpression ImportDefaultValue(string value, string type);

Parameters

value
String

The value found in the original XSD.

type
String

The XSD type name.

Returns

A CodeExpression setting the new default value.

Remarks

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.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1