Class VsCSharpSourceExtensions
Extensions class that provides common automation tasks rolled up under standard extension methods that support the VsCSharpSource model.
Inherited Members
Namespace: CodeFactory.VisualStudio
Assembly: CodeFactory.VisualStudio.dll
Syntax
public static class VsCSharpSourceExtensions
Methods
| Improve this Doc View SourceGetHostingProjectAsync(VsCSharpSource)
Extension method that loads the hosting project for the VsCSharpSource document.
Declaration
public static Task<VsProject> GetHostingProjectAsync(this VsCSharpSource source)
Parameters
Type | Name | Description |
---|---|---|
VsCSharpSource | source | Target document to load the parent from. |
Returns
Type | Description |
---|---|
Task<VsProject> | The project model or null if the project could not be loaded. |