IVsWCFReferenceGroupCollection Interface
Provides an interface for managing Windows Communication Foundation (WCF) reference groups.
Namespace: Microsoft.VisualStudio.WCFReference.Interop
Assembly: Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)
Syntax
'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("343173D2-F910-4C03-930D-16AB1568431B")> _
Public Interface IVsWCFReferenceGroupCollection _
Inherits IVsWCFObject
'Usage
Dim instance As IVsWCFReferenceGroupCollection
[InterfaceTypeAttribute()]
[GuidAttribute("343173D2-F910-4C03-930D-16AB1568431B")]
public interface IVsWCFReferenceGroupCollection : IVsWCFObject
[InterfaceTypeAttribute()]
[GuidAttribute(L"343173D2-F910-4C03-930D-16AB1568431B")]
public interface class IVsWCFReferenceGroupCollection : IVsWCFObject
public interface IVsWCFReferenceGroupCollection extends IVsWCFObject
Remarks
A WCF reference group is the basic unit for code generation. A project or solution can contain multiple reference groups.
Examples
The following example demonstrates how to use the IVsWCFReferenceGroupCollection interface to enumerate WCF reference groups.
/// 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;
}
See Also
Reference
IVsWCFReferenceGroupCollection Members