通过


SchemaImporterExtension.ImportDefaultValue(String, String) 方法

定义

允许为要导入的 XSD 类型指定默认值。

public:
 virtual System::CodeDom::CodeExpression ^ ImportDefaultValue(System::String ^ value, System::String ^ type);
public virtual System.CodeDom.CodeExpression ImportDefaultValue(string value, string type);
abstract member ImportDefaultValue : string * string -> System.CodeDom.CodeExpression
override this.ImportDefaultValue : string * string -> System.CodeDom.CodeExpression
Public Overridable Function ImportDefaultValue (value As String, type As String) As CodeExpression

参数

value
String

在原始 XSD 中找到的值。

type
String

XSD 类型名称。

返回

CodeExpression设置新的默认值。

注解

若要控制代码的生成,必须使用命名空间中找到的 System.CodeDom 类。 有关详细信息,请参阅 使用 CodeDOMCodeDOM 快速参考.aspx)。

适用于