共用方式為


IVsTeamExplorer.AddToFavorites Method

Adds the specified hierarchy to the list of favorites.

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)

Syntax

'宣告
Sub AddToFavorites ( _
    hierarchy As IVsUIHierarchy, _
    itemId As UInteger _
)
void AddToFavorites(
    IVsUIHierarchy hierarchy,
    uint itemId
)
void AddToFavorites(
    IVsUIHierarchy^ hierarchy, 
    unsigned int itemId
)
abstract AddToFavorites : 
        hierarchy:IVsUIHierarchy * 
        itemId:uint32 -> unit 
function AddToFavorites(
    hierarchy : IVsUIHierarchy, 
    itemId : uint
)

Parameters

  • itemId
    Type: System.UInt32
    The item ID of the hierarchy to add to favorites.

.NET Framework Security

See Also

Reference

IVsTeamExplorer Interface

Microsoft.TeamFoundation.Common Namespace