IVsDataObjectStore.GetObject 方法 (String, array<Object[], array<String )

从对象存储中检索指定的数据对象。

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

语法

声明
Function GetObject ( _
    typeName As String, _
    identifier As Object(), _
    properties As String() _
) As IVsDataObject
IVsDataObject GetObject(
    string typeName,
    Object[] identifier,
    string[] properties
)
IVsDataObject^ GetObject(
    String^ typeName, 
    array<Object^>^ identifier, 
    array<String^>^ properties
)
abstract GetObject : 
        typeName:string * 
        identifier:Object[] * 
        properties:string[] -> IVsDataObject 
function GetObject(
    typeName : String, 
    identifier : Object[], 
    properties : String[]
) : IVsDataObject

参数

  • typeName
    类型:System.String
    数据对象的数据源检索特定类型的名称。
  • identifier
    类型:array<System.Object[]
    包含存储在对象中唯一标识数据对象的标识符部件的数组。
  • properties
    类型:array<System.String[]
    指定数据对象的请求的属性值。DDEX的当前版本不支持属性。

返回值

类型:Microsoft.VisualStudio.Data.Services.IVsDataObject
表示数据对象的 IVsDataObject 检索。

异常

异常 条件
ArgumentNullException

typeName 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

IVsDataObjectStore 接口

GetObject 重载

Microsoft.VisualStudio.Data.Services 命名空间