IEnumWCFReferenceGroupMetadataItems Interface

 

An enumerator for Windows Communication Foundation (WCF) service metadata items.

Namespace:   Microsoft.VisualStudio.WCFReference.Interop
Assembly:  Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)

[GuidAttribute("603A2AEA-C925-4A8C-A273-65B3B81CD43A")]
public interface IEnumWCFReferenceGroupMetadataItems : IEnumerable

NameDescription
System_CAPS_pubmethodClone(IEnumWCFReferenceGroupMetadataItems)

Clones this IEnumWCFReferenceGroupMetadataItems interface by creating another instance.

System_CAPS_pubmethodGetEnumerator()

(Inherited from IEnumerable.)

System_CAPS_pubmethodNext(UInt32, IVsWCFReferenceGroupMetadataItem[], UInt32)
System_CAPS_pubmethodReset()

Returns the enumerator to its initial state.

System_CAPS_pubmethodSkip(UInt32)

Skips a specified number of IVsWCFReferenceGroupMetadataItem interfaces.

You can get an instance of the interface by using the GetMetadataItemsEnumerator method of the IVsWCFReferenceGroup interface.

The following example demonstrates how to populate a TreeNode with contracts by using the IEnumWCFReferenceGroupMetadataItems enumerator.

/// Enumerates the metadataItems under the Reference Group.
private TreeNode EnumerateGroupMetadataItems(IVsWCFReferenceGroup group)
{
    TreeNode metadataItemsNode = 
 CreateExplorerTreeNode(Resources.EnumMetaDataItems,
                                        ExplorerNodeType.Group,
                                        group,
                                        ExplorerNodeType.MetadataItem);
    try
    {
        IEnumWCFReferenceGroupMetadataItems metadataItems =
  group.GetMetadataItemsEnumerator();
        foreach (IVsWCFReferenceGroupMetadataItem item in
 metadataItems)
        {
            metadataItemsNode.Nodes.Add(CreateMetadataItemNode(item));
        }
    }
    catch (Exception ex)
    {
        metadataItemsNode.Nodes.Add(CreateErrorNode(ex));
    }
    return metadataItemsNode;
}
Return to top
Show: