Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.Int32
 The item ID of the node for which the object property should be retrieved.
- propertyName
 Type: System.String
 The 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.