다음을 통해 공유


IXMLDOMImplementation Object (C#)

The IXMLDOMImplementation object provides methods that are independent of any particular instance of the document object model. For more information, see the Microsoft XML SDK 3.0 documentation available at the Microsoft Web site.

The IXMLDOMImplementation object supports the following method.

Method

Description

hasFeature

Returns a Boolean value indicating whether the specified version of the implementation supports the specified feature.

Example

The following example creates an IXMLDOMImplementation object and checks whether a specified feature is supported.

using Microsoft.WindowsMediaServices.Interop;
using interop_msxml;

// Declare variables.
WMSServer Server;
IXMLDOMDocument Playlist;
IXMLDOMImplementation oImplementation;

try {
    // Create a new WMSServer object.
    Server = new WMSServerClass();

    // Create a new playlist object.
    Playlist = Server.CreatePlaylist();

    // Load a sample playlist file and check whether the file
    // supports the specified feature.
    Playlist.load("file://c:\\wmpub\\wmroot\\simple.wsx");
    oImplementation = Playlist.implementation;
    MessageBox.Show(oImplementation.hasFeature("DOM", "1.0").ToString());
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

See Also

Reference

IXMLDOMDocument Object (C#)