次の方法で共有


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

'宣言
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

  • cItems
    Type: Int32
    An Integer that represents the number of mappings.
  • lpstrCollectionMappings
    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 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

See Also

Reference

IVsWCFReferenceGroupOptions Interface

Microsoft.VisualStudio.WCFReference.Interop Namespace