The information in this article applies to:
SUMMARYWith the introduction of Active Channels in Internet Explorer 4.0, it may be desirable to determine whether a user is already subscribed to a channel, so that a Web page or an application does not redundantly offer users the ability to subscribe to a channel they've already subscribed to. MORE INFORMATIONThis article describes how to check a subscription from C++, Visual Basic, and script. C++ - using ISubscriptionMgr::IsSubscribedThe code below demonstrates how this can be done using C++, from a console application:
Visual Basic - Using the ShellUIHelper ObjectThe code below demonstrates how this can be done in a standard Visual Basic application. To use the ShellUIHelper object, use Project->References to add a reference to "Microsoft Internet Controls."
Please note that you must install the desktop update that comes with Internet Explorer 4.0x in order to use the ShellUIHelper object. Script - Using window.external.isSubscribedThe code below demonstrates how this can be done, using JavaScript in an .htm page:
Cross-frame security rules apply to this script call. Script in a document can only check to see if the user is subscribed to sites on the same domain. REFERENCESInternet Client SDK documentation Additional query words:
Keywords : kbcode kbChannels kbIE400 kbIE401 kbIE500 iegeneral |
Last Reviewed: April 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |