Share via


IEnumWCFReferenceGroupMetadataItems Interface

Definition

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

public interface class IEnumWCFReferenceGroupMetadataItems : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("603A2AEA-C925-4A8C-A273-65B3B81CD43A")]
[System.Runtime.InteropServices.TypeLibType(4096)]
public interface IEnumWCFReferenceGroupMetadataItems : System.Collections.IEnumerable
[System.Runtime.InteropServices.Guid("603A2AEA-C925-4A8C-A273-65B3B81CD43A")]
public interface IEnumWCFReferenceGroupMetadataItems : System.Collections.IEnumerable
[<System.Runtime.InteropServices.Guid("603A2AEA-C925-4A8C-A273-65B3B81CD43A")>]
[<System.Runtime.InteropServices.TypeLibType(4096)>]
type IEnumWCFReferenceGroupMetadataItems = interface
    interface IEnumerable
[<System.Runtime.InteropServices.Guid("603A2AEA-C925-4A8C-A273-65B3B81CD43A")>]
type IEnumWCFReferenceGroupMetadataItems = interface
    interface IEnumerable
Public Interface IEnumWCFReferenceGroupMetadataItems
Implements IEnumerable
Attributes
Implements

Examples

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;  
}  

Remarks

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

Methods

Clone(IEnumWCFReferenceGroupMetadataItems)

Clones this IEnumWCFReferenceGroupMetadataItems interface by creating another instance.

Next(UInt32, IVsWCFReferenceGroupMetadataItem[], UInt32)

Retrieves the next IVsWCFReferenceGroupMetadataItem.

Reset()

Returns the enumerator to its initial state.

Skip(UInt32)

Skips a specified number of IVsWCFReferenceGroupMetadataItem interfaces.

Applies to