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.
Gets the value of the specified annotation. if property is not set we reutnr the default value that the caller pass to this method
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function GetValue(Of T) ( _
property As GraphProperty, _
defaultValueIfNotFound As T _
) As T
public T GetValue<T>(
GraphProperty property,
T defaultValueIfNotFound
)
public:
generic<typename T>
T GetValue(
GraphProperty^ property,
T defaultValueIfNotFound
)
member GetValue :
property:GraphProperty *
defaultValueIfNotFound:'T -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
the type of data to return
Parameters
- property
Type: Microsoft.VisualStudio.GraphModel.GraphProperty
the property you want to get the value of
- defaultValueIfNotFound
Type: T
value to return is property is not found
Return Value
Type: T
value of the given property
.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.