Class VS
The entry point for a wide variety of extensibility helper classes and methods.
Inheritance
System.Object
VS
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Community.VisualStudio.Toolkit
Assembly: Community.VisualStudio.Toolkit.dll
Syntax
public static class VS
Properties
| Improve this Doc View SourceCommanding
A collection of services related to the command system.
Declaration
public static Commanding Commanding { get; }
Property Value
Type | Description |
---|---|
Commanding |
Debugger
A collection of services related to the debugger.
Declaration
public static Debugger Debugger { get; }
Property Value
Type | Description |
---|---|
Debugger |
Editor
A collection of services related to the editor.
Declaration
public static Editor Editor { get; }
Property Value
Type | Description |
---|---|
Editor |
Events
A collection of events.
Declaration
public static Events Events { get; }
Property Value
Type | Description |
---|---|
Events |
Notifications
A collection of services related to notifying the users.
Declaration
public static Notifications Notifications { get; }
Property Value
Type | Description |
---|---|
Notifications |
Shell
A collection of services related to the shell.
Declaration
public static Shell Shell { get; }
Property Value
Type | Description |
---|---|
Shell |
Solution
A collection of services related to solutions.
Declaration
public static Solution Solution { get; }
Property Value
Type | Description |
---|---|
Solution |
Windows
A collection of services related to windows.
Declaration
public static Windows Windows { get; }
Property Value
Type | Description |
---|---|
Windows |
Methods
| Improve this Doc View SourceGetDTEAsync()
Get the EnvDTE which provide a broad API for a large part of Visual Studio.
Declaration
public static Task<DTE2> GetDTEAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<EnvDTE80.DTE2> |
GetServiceAsync<TService, TInterface>()
Gets a global service asynchronously.
Declaration
public static Task<TInterface> GetServiceAsync<TService, TInterface>()
where TService : class where TInterface : class
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TInterface> | A task who's result is the service, if found; otherwise langword_csharp_. |
Type Parameters
Name | Description |
---|---|
TService | The type identity of the service. |
TInterface | The interface to cast the service to. |