XmlElement.GetAttributeNS(Object, String) メソッド

定義

属性の値を返します。

public:
 virtual Platform::String ^ GetAttributeNS(Platform::Object ^ namespaceUri, Platform::String ^ localName) = GetAttributeNS;
winrt::hstring GetAttributeNS(IInspectable const& namespaceUri, winrt::hstring const& localName);
public string GetAttributeNS(object namespaceUri, string localName);
function getAttributeNS(namespaceUri, localName)
Public Function GetAttributeNS (namespaceUri As Object, localName As String) As String

パラメーター

namespaceUri
Object

Platform::Object

IInspectable

取得する属性の名前空間。

localName
String

Platform::String

winrt::hstring

名前空間プレフィックスのない属性の名前。

戻り値

String

Platform::String

winrt::hstring

属性の文字列値。

var width = element.GetAttributeNS("http://www.w3.org/2000/svg", "width");
auto width = element.GetAttributeNS(winrt::box_value(L"http://www.w3.org/2000/svg"), L"width");

適用対象