Retrieves the data-source-specific identifier of the object associated with the node matching the specified item ID.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public Function GetObjectIdentifier ( _
itemId As Integer _
) As Object()
'使用
Dim instance As DataViewHierarchyAccessor
Dim itemId As Integer
Dim returnValue As Object()
returnValue = instance.GetObjectIdentifier(itemId)
public Object[] GetObjectIdentifier(
int itemId
)
public:
array<Object^>^ GetObjectIdentifier(
int itemId
)
public function GetObjectIdentifier(
itemId : int
) : Object[]
Parameters
itemId
Type: System.Int32The item ID of the node for which the object identifier should be retrieved.
Return Value
Type: []
Returns the data-source-specific identifier of the object associated with the node matching the specified item ID.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The specified itemId is invalid. |
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.
See Also
Reference
DataViewHierarchyAccessor Class