XmlElementAttribute.ElementName プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > XmlElementAttribute.ElementName プロパティの意味・解説 

XmlElementAttribute.ElementName プロパティ

生成されXML 要素の名前を取得または設定します

名前空間: System.Xml.Serialization
アセンブリ: System.Xml (system.xml.dll 内)
構文構文

Dim instance As XmlElementAttribute
Dim value As String

value = instance.ElementName

instance.ElementName = value
public string ElementName { get;
 set; }
/** @property */
public String get_ElementName ()

/** @property */
public void set_ElementName (String value)
public function get ElementName
 () : String

public function set ElementName
 (value : String)

プロパティ
生成されXML 要素の名前。既定値は、メンバ識別子です。

解説解説
使用例使用例

XmlElementAttribute の ElementName プロパティ新しい値を設定する例を次に示します

' This is the class that will be serialized.
Public Class XClass
   ' The XML element name will be XName
   ' instead of the default ClassName.
   <XmlElement(ElementName := "XName")> Public
 ClassName() As String
End Class
// This is the class that will be serialized.
public class XClass
{
   /* The XML element name will be XName
   instead of the default ClassName. */
   [XmlElement(ElementName = "XName")]
   public string ClassName;
} 
// This is the class that will be serialized.
public ref class XClass
{
public:
   /* The XML element name will be XName
   instead of the default ClassName. */
   [XmlElement(ElementName="XName")]
   String^ ClassName;
};
// This is the class that will be serialized.
public class XClass
{
    /* The XML element name will be XName
       instead of the default ClassName. */
    /** @attribute XmlElement(ElementName = "XName")
     */
    public String className;
} //XClass
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
XmlElementAttribute クラス
XmlElementAttribute メンバ
System.Xml.Serialization 名前空間
XmlAttributeAttribute.AttributeName プロパティ


このページでは「.NET Framework クラス ライブラリ リファレンス」からXmlElementAttribute.ElementName プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からXmlElementAttribute.ElementName プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からXmlElementAttribute.ElementName プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「XmlElementAttribute.ElementName プロパティ」の関連用語

XmlElementAttribute.ElementName プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



XmlElementAttribute.ElementName プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS