XmlDocument.GetElementById(String) 方法

定義

傳回符合 ID 屬性的專案。

public:
 virtual XmlElement ^ GetElementById(Platform::String ^ elementId) = GetElementById;
XmlElement GetElementById(winrt::hstring const& elementId);
public XmlElement GetElementById(string elementId);
function getElementById(elementId)
Public Function GetElementById (elementId As String) As XmlElement

參數

elementId
String

Platform::String

winrt::hstring

要比對的識別碼。

傳回

符合所提供識別碼的專案。 如果沒有相符的專案,這個方法會傳回 Null。

適用於