DataViewHierarchyAccessor.GetObjectProperty Method
Retrieves a property of a data object associated with the node matching the specified item ID.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Function GetObjectProperty ( _
itemId As Integer, _
propertyName As String _
) As Object
public Object GetObjectProperty(
int itemId,
string propertyName
)
public:
Object^ GetObjectProperty(
int itemId,
String^ propertyName
)
member GetObjectProperty :
itemId:int *
propertyName:string -> Object
public function GetObjectProperty(
itemId : int,
propertyName : String
) : Object
Parameters
itemId
Type: System.Int32The item ID of the node for which the object property should be retrieved.
propertyName
Type: System.StringThe name of the property to retrieve.
Return Value
Type: System.Object
Returns the value of the property of the data object associated with the node matching the specified item ID.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The propertyName parameter is null. |
ArgumentException | The specified itemId is invalid. |
.NET Framework Security
- 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.