LiveWatchEngineExtensionsReadMemory Method

Reads the value of a given pinned variable

Definition

Namespace: VisualGDBExtensibility.LiveWatch
Assembly: VisualGDBExtensibility (in VisualGDBExtensibility.dll) Version: 5.6.109.1 (5.6.109.4849)
C#
public static LiveVariableValue ReadMemory(
	this ILiveWatchEngine engine,
	IPinnedVariable variable,
	LiveVariableQueryMode mode = LiveVariableQueryMode.UseCacheIfAvailable
)

Parameters

engine  ILiveWatchEngine
The live watch engine that will be used for reading the memory.
variable  IPinnedVariable
The pinned variable object corresponding to the variable that should be read.
mode  LiveVariableQueryMode  (Optional)
Specifies whether to use the cache when reading the value.

Return Value

LiveVariableValue
The value of the given variable. Use the IsValid property to check whether the read operation succeeded.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILiveWatchEngine. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also