IVsWCFReferenceGroupOptions.GetCollectionMappings Method

Returns a list of types that will be used for collections when you generate a Windows Communication Foundation (WCF) client.

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

Syntax

'Declaration
Sub GetCollectionMappings ( _
    category As CollectionCategory, _
    cItems As Integer, _
    <OutAttribute> rgbstrCollectionMappings As String() _
)
void GetCollectionMappings(
    CollectionCategory category,
    int cItems,
    string[] rgbstrCollectionMappings
)
void GetCollectionMappings(
    [InAttribute] CollectionCategory category, 
    [InAttribute] int cItems, 
    [OutAttribute] array<String^>^ rgbstrCollectionMappings
)
abstract GetCollectionMappings : 
        category:CollectionCategory * 
        cItems:int * 
        rgbstrCollectionMappings:string[] byref -> unit
function GetCollectionMappings(
    category : CollectionCategory, 
    cItems : int, 
    rgbstrCollectionMappings : String[]
)

Parameters

  • cItems
    Type: Int32

    An Integer that represents the number of mappings.

  • rgbstrCollectionMappings
    Type: array<String[]

    A String that contains the mappings.

Remarks

Types are picked heuristically according to how closely they match the schema types. The collection mappings are kept in three categories, which may affect how design-time user interfaces display this information to the user. All three categories are treated the same during proxy generation.

The values returned by GetCollectionMappings determine what is displayed in the Collection type and Dictionary collection type lists in the Configure Service Reference dialog box.

.NET Framework Security

See Also

Reference

IVsWCFReferenceGroupOptions Interface

Microsoft.VisualStudio.WCFReference.Interop Namespace