LanguageService.AddCodeWindowManager Method
Adds a code window manager to the language service.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Sub AddCodeWindowManager ( _
m As CodeWindowManager _
)
'使用
Dim instance As LanguageService
Dim m As CodeWindowManager
instance.AddCodeWindowManager(m)
public void AddCodeWindowManager(
CodeWindowManager m
)
public:
void AddCodeWindowManager(
CodeWindowManager^ m
)
member AddCodeWindowManager :
m:CodeWindowManager -> unit
public function AddCodeWindowManager(
m : CodeWindowManager
)
Parameters
- m
Type: Microsoft.VisualStudio.Package.CodeWindowManager
[in] An instance of the CodeWindowManager object to add.
Remarks
The language service maintains an internal list of code window managers associated with the language service. This association is made when this method is called from CodeWindowManager.AddAdornments.
RemoveCodeWindowManager is called when CodeWindowManager.RemoveAdornments is called to disassociate the code window manager from the language service.
.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.