共用方式為


ProvideLanguageServiceAttribute.DebuggerLanguageExpressionEvaluator Property

Determines the expression evaluator that is used for evaluating expressions.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Property DebuggerLanguageExpressionEvaluator As String
public string DebuggerLanguageExpressionEvaluator { get; set; }

Property Value

Type: System.String
Returns a string containing the GUID of an expression evaluator; otherwise, returns a null value.

Remarks

A language service can interact with a debugger when a program is being debugged. Visual Studio can be told about which expression evaluator to use with a particular language service to avoid having to load a full debug engine.

This property is available to any language service implementation.

The default is a null value, indicating no associated expression evaluator is available.

The registry entry looks like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\[X.Y]\Languages\Language Services\
  [Language Name]\
    Debugger Languages\
      [Expression Evaluator GUID] = reg_sz: [language name]

Examples

    [ProvideLanguageService(typeof(MyLanguageService),           // Required
                            MyConstants.languageName,            // Required
                            MyConstants.languageNameResourceID,  // Required
        // Optional language service properties
        DebuggerLanguageExpressionEvaluator = "{45345223-cecd-48e7-a866-45cad2e8b169}",
                           )]

.NET Framework Security

See Also

Reference

ProvideLanguageServiceAttribute Class

Microsoft.VisualStudio.Shell Namespace