IVsWCFReferenceGroupOptions::GetCollectionMappings Method (CollectionCategory, Int32, array<String^>^)

 

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)

void GetCollectionMappings(
	CollectionCategory category,
	int cItems,
	array<String^>^ rgbstrCollectionMappings
)

Parameters

category
Type: Microsoft.VisualStudio.WCFReference.Interop::CollectionCategory

A CollectionCategory item.

cItems
Type: System::Int32

An Integer that represents the number of mappings.

rgbstrCollectionMappings
Type: array<System::String^>^

A String that contains the mappings.

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.

Return to top
Show: