IShellUIHelper3::AddToFavoritesBar Method
IShellUIHelper3::AddToFavoritesBar Method
New for Windows Internet Explorer 8

Adds a URL to the Favorites Bar.

Syntax

HRESULT AddToFavoritesBar(      
    BSTR URL,     BSTR Title,     VARIANT *Type );

Parameters

URL
[in] The URL of the page to add.
Title
[in] The Title for this page.
Type
[in] Pointer to a variable of type VARIANT of type VT_BSTR that specifies one of the following, or NULL.
feed
The content is a Really Simple Syndication (RSS) feed.
slice
The content is a Web Slice.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Caller must specify a non-NULL, non-empty URL and Title, and can optionally identify the URL as an RSS feed or a Web Slice. If the Type is a feed or slice, the function will subscribe using the Windows RSS Platform. When subscribing to a feed or a Web Slice, the Title is only used until the data can be retrieved from the server.

If no Type is specified, the item is simply added as a bookmark to the Favorites Bar.

See Also

Subscribing to Content with Web Slices
© 2009 Microsoft Corporation 版权所有。   保留所有权利 | 商标 | 隐私权声明
Page view tracker
为轻量型库评级
x
依无脚本原则生成的轻量型库 (loband),添加了大家要求的功能:搜索框和默认代码语言选择。
您喜欢这个搜索框吗?
您喜欢标签式代码块吗?
此主题有用吗?
提供详细反馈。
谢谢
x
感谢您帮助改善 MSDN Online。
反馈意见
切换视图
经典视图
轻量型视图
无脚本视图
切换视图