IVsWCFReferenceGroupOptions.SetCollectionMappings 方法

为该集合将使用类型的列表,在生成 windows communication foundation (WCF) 客户端时。

命名空间:  Microsoft.VisualStudio.WCFReference.Interop
程序集:  Microsoft.VisualStudio.WCFReference.Interop(在 Microsoft.VisualStudio.WCFReference.Interop.dll 中)

语法

声明
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[]
)

参数

  • cItems
    类型:Int32

    表示映射的 Integer 。

  • lpstrCollectionMappings
    类型:array<String[]

    包含映射的 String 。

备注

类型是基于其方式选择 heuristically 最匹配架构类型。 集合映射在三个类别中保留,这可能会影响设计时用户界面如何显示此信息给用户。 所有三个类别在生成代理时被视为相同。

SetCollectionMappings 设置的值确定在 集合类型 显示,并 字典集合类型配置服务引用 对话框中。

.NET Framework 安全性

请参阅

参考

IVsWCFReferenceGroupOptions 接口

Microsoft.VisualStudio.WCFReference.Interop 命名空间