SchemaImporterExtension.ImportDefaultValue(String, String) 方法

定義

可讓您指定正在匯入之 XSD 型別的預設值。Allows you to specify the default value for the XSD type being imported.

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 中的值。The value found in the original XSD.

type
String

XSD 型別名稱。The XSD type name.

傳回

CodeExpression,設定新的預設值。A CodeExpression setting the new default value.

備註

為了控制程式代碼的產生, 您必須使用在System.CodeDom命名空間中找到的類別。In order to control the generation of the code, you must use the classes found in the System.CodeDom namespace. 如需詳細資訊, 請參閱使用 codedomcodedom 快速參考For more information, see Using the CodeDOM and CodeDOM Quick Reference.

適用於