Sdílet prostřednictvím


IVsWCFReferenceGroupOptions.GetCollectionMappings Method

Definition

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

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

Parameters

cItems
Int32

An Integer that represents the number of mappings.

rgbstrCollectionMappings
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.

Applies to