Retrieves the specified data object from the object store.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Function GetObject ( _
typeName As String, _
identifier As Object(), _
properties As String() _
) As IVsDataObject
'使用
Dim instance As IVsDataObjectStore
Dim typeName As String
Dim identifier As Object()
Dim properties As String()
Dim returnValue As IVsDataObject
returnValue = instance.GetObject(typeName, _
identifier, properties)
IVsDataObject GetObject(
string typeName,
Object[] identifier,
string[] properties
)
IVsDataObject^ GetObject(
String^ typeName,
array<Object^>^ identifier,
array<String^>^ properties
)
function GetObject(
typeName : String,
identifier : Object[],
properties : String[]
) : IVsDataObject
Parameters
typeName
Type: System.StringThe data source–specific type name of the data object to retrieve.
identifier
Type: []An array containing the identifier parts that uniquely identify the data object in the object store.
properties
Type: []Specifies the requested property values of the data object. The current version of DDEX does not support properties.
Return Value
Type: Microsoft.VisualStudio.Data.Services.IVsDataObject
An IVsDataObject representing the data object to retrieve.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The typeName parameter is a null reference (Nothing in Visual Basic). |
Permissions
- 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.