次の方法で共有


XmlSchemaElement.DefaultValue プロパティ

要素の内容が単純型または textOnly である場合は、その要素の既定値を取得または設定します。

Public Property DefaultValue As String
[C#]
public string DefaultValue {get; set;}
[C++]
public: __property String* get_DefaultValue();public: __property void set_DefaultValue(String*);
[JScript]
public function get DefaultValue() : String;public function set DefaultValue(String);

プロパティ値

この要素の既定値。既定値は null 参照です。

省略可能。

解説

fixed 属性と default 属性は同時には指定できません。要素が単純型を格納する場合、この値は、その型の有効値である必要があります。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

XmlSchemaElement クラス | XmlSchemaElement メンバ | System.Xml.Schema 名前空間