OpenXmlElement.GetAttribute(String, String) メソッド

定義

指定したタグ名と名前空間 URI を持つ Open XML 属性を取得します。

public DocumentFormat.OpenXml.OpenXmlAttribute GetAttribute (string localName, string namespaceUri);
member this.GetAttribute : string * string -> DocumentFormat.OpenXml.OpenXmlAttribute
Public Function GetAttribute (localName As String, namespaceUri As String) As OpenXmlAttribute

パラメーター

localName
String

タグ名。

namespaceUri
String

名前空間 URI。

戻り値

ローカル名が "localName" に等しく、名前空間 URI が "namespaceUri" と等しい OpenXmlAttribute の複製を返します。

例外

"localName" が空の場合。

要素に指定された属性がない場合。

適用対象