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
category
Type: Microsoft.VisualStudio.WCFReference.Interop.CollectionCategoryA CollectionCategory item.
cItems
Type: Int32An 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.