将属性的当前集合中指定的属性设置为指定的一些 KeyValuePair<String, Object> 对象。
命名空间: Microsoft.VisualStudio.Data.Services
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
Sub CopyTo ( _
array As KeyValuePair(Of String, Object)(), _
properties As String(), _
arrayIndex As Integer _
)
void CopyTo(
KeyValuePair<string, Object>[] array,
string[] properties,
int arrayIndex
)
void CopyTo(
array<KeyValuePair<String^, Object^>>^ array,
array<String^>^ properties,
int arrayIndex
)
abstract CopyTo :
array:KeyValuePair<string, Object>[] *
properties:string[] *
arrayIndex:int -> unit
function CopyTo(
array : KeyValuePair<String, Object>[],
properties : String[],
arrayIndex : int
)
参数
- array
类型:array<System.Collections.Generic.KeyValuePair<String, Object>[]
复制属性数组赋给。
- properties
类型:array<System.String[]
要复制的特定属性。指定 nullnull 引用(在 Visual Basic 中为 Nothing) 复制所有属性。
- arrayIndex
类型:System.Int32
索引在何处开始复制到目标数组。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。