IVsWCFReferenceGroupCollection 接口

为托管 " 窗口提供一个接口基础 (WCF)引用组的通信。

命名空间:  Microsoft.VisualStudio.WCFReference.Interop
程序集:  Microsoft.VisualStudio.WCFReference.Interop(在 Microsoft.VisualStudio.WCFReference.Interop.dll 中)

语法

声明
<GuidAttribute("343173D2-F910-4C03-930D-16AB1568431B")> _
<InterfaceTypeAttribute()> _
Public Interface IVsWCFReferenceGroupCollection _
    Inherits IVsWCFObject
[GuidAttribute("343173D2-F910-4C03-930D-16AB1568431B")]
[InterfaceTypeAttribute()]
public interface IVsWCFReferenceGroupCollection : IVsWCFObject
[GuidAttribute(L"343173D2-F910-4C03-930D-16AB1568431B")]
[InterfaceTypeAttribute()]
public interface class IVsWCFReferenceGroupCollection : IVsWCFObject
[<GuidAttribute("343173D2-F910-4C03-930D-16AB1568431B")>]
[<InterfaceTypeAttribute()>]
type IVsWCFReferenceGroupCollection =  
    interface 
        interface IVsWCFObject 
    end
public interface IVsWCFReferenceGroupCollection extends IVsWCFObject

IVsWCFReferenceGroupCollection 类型公开以下成员。

方法

  名称 说明
公共方法 Add 添加 windows 基础 (WCF)引用组对集合进行通信。
公共方法 ContainingProject 返回包含集合中团队项目的项目层次结构。
公共方法 Count 返回计数 windows 基础 (WCF)引用集合的组的通信。
公共方法 GetReferenceGroupByName 返回指定的 windows 基础 (WCF)引用集合的组的通信。
公共方法 GetReferenceGroupFromMapFile 返回指定的 windows 基础 (WCF)引用集合的组的通信。
公共方法 IsValid 确定的索引 windows communication foundation (WCF) 引用组是否是有效的集合中。
公共方法 Item 返回指定的 windows 基础 (WCF)引用集合的组的通信。
公共方法 Reload 刷新 windows 基础 (WCF)引用组集合的通信。
公共方法 Remove 移除 windows 基础 (WCF)引用从集合的组的通信。
公共方法 RemoveAt 移除 windows 基础 (WCF)按索引引用从集合的组的通信。
公共方法 UpdateAll 更新所有 windows 基础 (WCF)引用集合的组的通信。

页首

备注

WCF 引用组是代码生成的基本单元。 项目或解决方案可以包含多个引用组。

示例

下面的示例演示如何使用 IVsWCFReferenceGroupCollection 接口枚举 WCF 引用组。

/// Enumerates reference groups and returns the tree node representing /// the reference groups.
private TreeNode EnumerateReferenceGroups(IVsWCFReferenceManager
 referenceManager)
{
    IVsWCFReferenceGroupCollection referenceGroups =
 referenceManager.GetReferenceGroupCollection();
    TreeNode groupsNode = CreateExplorerTreeNode(Resources.EnumRefGrp,
                                        ExplorerNodeType.Group,
                                        referenceManager,
                                        ExplorerNodeType.Reference);

    for (int i = 0; i < referenceGroups.Count(); ++i)
    {
        try
        {
            IVsWCFReferenceGroup group = referenceGroups.Item(i);
            groupsNode.Nodes.Add(CreateReferenceGroupNode(group));
        }
        catch (Exception ex)
        {
            groupsNode.Nodes.Add(CreateErrorNode(ex));
         }
     }

    return groupsNode;
}

请参阅

参考

Microsoft.VisualStudio.WCFReference.Interop 命名空间

IVsWCFReferenceGroup