VsUtilities.ReloadProject Method
Expands and reloads a project that is in the current solution and unloaded.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Common.Host
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function ReloadProject ( _
site As IServiceProvider, _
fullProjectFileName As String _
) As Boolean
'Usage
Dim site As IServiceProvider
Dim fullProjectFileName As String
Dim returnValue As Boolean
returnValue = VsUtilities.ReloadProject(site, _
fullProjectFileName)
public static bool ReloadProject(
IServiceProvider site,
string fullProjectFileName
)
public:
static bool ReloadProject(
IServiceProvider^ site,
String^ fullProjectFileName
)
public static function ReloadProject(
site : IServiceProvider,
fullProjectFileName : String
) : boolean
static member ReloadProject :
site:IServiceProvider *
fullProjectFileName:string -> bool
Parameters
- site
Type: System.IServiceProvider
The service provider
- fullProjectFileName
Type: System.String
The project file name
Return Value
Type: System.Boolean
Returns true if the project was queued for reloading, otherwise returns false.
Remarks
Note: The reload command is performed through a post message so it is asynchronous.
.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.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Common.Host Namespace