IXMLDOMImplementation.hasFeature (Visual Basic .NET)

banner art

Previous Next

IXMLDOMImplementation.hasFeature (Visual Basic .NET)

The hasFeature method returns a Boolean value indicating whether the specified version of the implementation supports the specified feature.

Syntax

  bValue = IXMLDOMImplementation
  .hasFeature(
  strFeature As String,
  strVersion As String
)

Parameters

strfeature

[in] String that specifies the feature to test. In Level 1, valid feature values are "XML," "DOM," and "MS-DOM" (not case-sensitive).

strVersion

[in] String that specifies the version number to test. If the string is empty, the method tests for implementation of the feature in all versions. In Level 1, "1.0" is the valid version value.

Return Values

Returns True if the specified feature is implemented, and False otherwise.

Remarks

In the Windows Media Services SDK implementation of the XML DOM, this property will always return False.

Example Code

The following example checks whether Document Object Model v1.0 is implemented in the current XML document.

Imports interop_msxml
Imports Microsoft.WindowsMediaServices.Interop

On Error GoTo Err

' Declare variables.
Dim Server As New WMSServerClass()
Dim Playlist As IXMLDOMDocument
Dim bool As Boolean

' Create a new playlist object.
Set Playlist = Server.CreatePlaylist

' Check whether a feature is implemented or not.
bool = Playlist.implementation.hasFeature("DOM", "1.0")
Exit Sub

Err:
' TODO: Handle errors.

Requirements

Reference: Add references to Microsoft.WindowsMediaServices and interop_msxml.

Namespace: Microsoft.WindowsMediaServices.Interop, interop_msxml.

Assembly: Microsoft.WindowsMediaServices.dll, interop_msxml.dll.

Library: WMSServerTypeLib.dll, msxml.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Previous Next