Share via


SessionManager Constants

 

Updated: July 30, 2015

Constants that define property names and values for Session Manager options.

Syntax

// VARTYPE for PROP_EXTERNALDEBUGHOST is VT_UNKNOWN
// The value of this property should be an instance of type implementing IExternalDebugHost.
#define PROP_EXTERNALDEBUGHOST OLESTR("ExternalDebugHost")
// VARTYPE for PROP_INVOKEONMAINTHREAD is VT_BOOL
// VARIANT_TRUE if using STA; VARIANT_FALSE otherwise.
#define PROP_INVOKEONMAINTHREAD OLESTR("InvokeOnMainThread")
// VARTYPE for PROP_BREAKPOINTPERSISTENCEENABLED is VT_BOOL
// VARIANT_TRUE if breakpoints should be saved when saving the project; VARIANT_FALSE otherwise.
#define PROP_BREAKPOINTPERSISTENCEENABLED OLESTR("BreakpointPersistenceEnabled")
// VARTYPE for PROP_IDEDEBUGGINGENABLED is VT_BOOL
// VARIANT_TRUE if debugging from the IDE is enabled; VARIANT_FALSE otherwise.
#define PROP_IDEDEBUGGINGENABLED OLESTR("IdeDebuggingEnabled")
// VARTYPE for PROP_VSIDEVERSION is VT_BSTR
// Specifies version of Microsoft Visual Studio to use. Must be one of the VS version strings defined in VsIdePropertyValues.h.
#define PROP_VSIDEVERSION OLESTR("VSIdeVersion")
// VARTYPE for PROP_ALLOWPROJECTRETARGETINGFROMIDE is VT_BOOL
// VARIANT_TRUE if users can retarget a project's .Net version from the IDE; VARIANT_FALSE otherwise.
#define PROP_ALLOWPROJECTRETARGETINGFROMIDE OLESTR("AllowProjectRetargetingFromIde")
// VARTYPE for PROP_SAVEONIDELOSTFOCUS is VT_BOOL
// VARIANT_TRUE if users want to auto-save project files when the IDE loses focus; VARIANT_FALSE otherwise.
#define PROP_SAVEONIDELOSTFOCUS OLESTR("SaveOnIdeLostFocus")
#define PROPERTY_COUNT 7
//
// Property values for Session Manger's Options
//
// Supported values for PROP_VSIDEVERSION
#define IdeVersion11 L"11.0"
// Supported values for PROP_VSIDEVERSION
#define IdeVersion12 L"12.0"
// All supported VS Ide versions
#define SupportedIdeVersions L"11.0;12.0"

Remarks

Constants are defined in the file vsta.h.

Requirements

DLL

VstaCore.dll

Library

VstaCore.lib

Header

Vsta.h

See Also

Functions (VSTA)