Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
QueryEditSolutionFile Method

IVsSolution.QueryEditSolutionFile Method

Determines whether the solution file can be changed.

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

int QueryEditSolutionFile(
	out uint pdwEditResult


Type: System.UInt32
[out] Pointer to QER_EditOK or QER_NoEdit_UserCanceled.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsSolution::QueryEditSolutionFile(
   [out] DWORD *pdwEditResult

This method is a shortcut for the QueryEditFiles method. Instead of having to build an array of files, call IVsSolution.QueryEditSolutionFile and get a result indicating whether you can edit the solution file.

Community Additions

© 2015 Microsoft