IVsWCFReferenceGroupOptions.SetCollectionMappings Method
Sets 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 SetCollectionMappings ( _
category As CollectionCategory, _
cItems As Integer, _
lpstrCollectionMappings As String() _
)
void SetCollectionMappings(
CollectionCategory category,
int cItems,
string[] lpstrCollectionMappings
)
void SetCollectionMappings(
[InAttribute] CollectionCategory category,
[InAttribute] int cItems,
[InAttribute] array<String^>^ lpstrCollectionMappings
)
abstract SetCollectionMappings :
category:CollectionCategory *
cItems:int *
lpstrCollectionMappings:string[] -> unit
function SetCollectionMappings(
category : CollectionCategory,
cItems : int,
lpstrCollectionMappings : String[]
)
Parameters
category
Type: Microsoft.VisualStudio.WCFReference.Interop.CollectionCategoryA CollectionCategory item.
cItems
Type: System.Int32An Integer that represents the number of mappings.
lpstrCollectionMappings
Type: array<System.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.
.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.