XmlDomImplementation.HasFeature(String, Object) 方法

定義

表示支援指定的功能。

public:
 virtual bool HasFeature(Platform::String ^ feature, Platform::Object ^ version) = HasFeature;
bool HasFeature(winrt::hstring const& feature, IInspectable const& version);
public bool HasFeature(string feature, object version);
function hasFeature(feature, version)
Public Function HasFeature (feature As String, version As Object) As Boolean

參數

feature
String

Platform::String

winrt::hstring

指定要測試的功能。 在層級 1 中,有效的特徵值為 「XML」、「DOM」 和 「MS-DOM」 (不區分大小寫) 。

version
Object

Platform::Object

IInspectable

指定要測試的版本號碼。 如果為 Null,則測試在任何版本中實作功能。 在層級 1 中,「1.0」 是有效的版本值。

傳回

Boolean

bool

如果實作指定的功能,則為 True;否則為 false。

適用於