Share via


IVsWCFReferenceGroupOptions.SetCollectionMappings Method

Definition

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

public:
 void SetCollectionMappings(Microsoft::VisualStudio::WCFReference::Interop::CollectionCategory category, int cItems, cli::array <System::String ^> ^ lpstrCollectionMappings);
public:
 void SetCollectionMappings(Microsoft::VisualStudio::WCFReference::Interop::CollectionCategory category, int cItems, Platform::Array <Platform::String ^> ^ lpstrCollectionMappings);
void SetCollectionMappings(Microsoft::VisualStudio::WCFReference::Interop::CollectionCategory category, int cItems, std::Array <std::wstring const &> const & lpstrCollectionMappings);
public void SetCollectionMappings (Microsoft.VisualStudio.WCFReference.Interop.CollectionCategory category, int cItems, string[] lpstrCollectionMappings);
abstract member SetCollectionMappings : Microsoft.VisualStudio.WCFReference.Interop.CollectionCategory * int * string[] -> unit
Public Sub SetCollectionMappings (category As CollectionCategory, cItems As Integer, lpstrCollectionMappings As String())

Parameters

cItems
Int32

An Integer that represents the number of mappings.

lpstrCollectionMappings
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 set by SetCollectionMappings determine what is displayed in the Collection type and Dictionary collection type lists in the Configure Service Reference dialog box.

Applies to