Compartilhar via


IGraphProvider.GetExtension<T>(GraphObject, T) Method

Definition

Gets the extension T for the given GraphObject.

public:
generic <typename T>
 where T : class T GetExtension(Microsoft::VisualStudio::GraphModel::GraphObject ^ graphObject, T previous);
public T GetExtension<T> (Microsoft.VisualStudio.GraphModel.GraphObject graphObject, T previous) where T : class;
abstract member GetExtension : Microsoft.VisualStudio.GraphModel.GraphObject * 'T -> 'T (requires 'T : null)
Public Function GetExtension(Of T As Class) (graphObject As GraphObject, previous As T) As T

Type Parameters

T

Parameters

graphObject
GraphObject

The GraphObject whose extension is being retrieved.

previous
T

The previous providers result. This can be used to chain multiple provider's extension together if necessary.

Returns

T

Applies to