SecurityElement.Attribute メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SecurityElement.Attribute メソッドの意味・解説 

SecurityElement.Attribute メソッド

XML 要素で、名前を指定して属性検索します

名前空間: System.Security
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

例外例外
例外種類条件

ArgumentNullException

name パラメータnull 参照 (Visual Basic では Nothing) です。

解説解説

次の XML で、Attribute("B") は "456" を返します

<thetag A="123" B="456" C="789">text</thetag>
使用例使用例

Attribute メソッド使用して、名前を指定して属性検索する方法次のコード例示します。このコード例は、SecurityElement クラストピック取り上げているコード例一部分です。

Dim xmlCreationDate As String
 = xmlElement.Attribute("creationdate")
string xmlCreationDate = xmlElement.Attribute("creationdate");
String^ xmlCreationDate = xmlElement->Attribute(L"creationdate");
String xmlCreationDate = xmlElement.Attribute("creationdate");
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

SecurityElement.Attribute メソッドのお隣キーワード
検索ランキング

   

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



SecurityElement.Attribute メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS