IVsSolution2 Interface
Provides top-level manipulation or maintenance of the solution.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
‘선언
<InterfaceTypeAttribute()> _
<GuidAttribute("95C6A090-BB9E-4BF2-B0BE-F1D04F0ECEA3")> _
Public Interface IVsSolution2 _
Implements IVsSolution
‘사용 방법
Dim instance As IVsSolution2
[InterfaceTypeAttribute()]
[GuidAttribute("95C6A090-BB9E-4BF2-B0BE-F1D04F0ECEA3")]
public interface IVsSolution2 : IVsSolution
[InterfaceTypeAttribute()]
[GuidAttribute(L"95C6A090-BB9E-4BF2-B0BE-F1D04F0ECEA3")]
public interface class IVsSolution2 : IVsSolution
public interface IVsSolution2 extends IVsSolution
Remarks
A project reference is a string value that is used as a unique project identifier and that is independent of which solution uses the project. The project reference is composed of the following:
Path
Project name
Project type
Project GUID
Project type GUID
Each __VSPROPID must return a VARIANT structure filled with the proper VT_ type. The caller may assume that the VT_ is correct; that there is no need to call VariantChangeType, or to verify the type, beyond an ASSERT to make sure there weren't header file mismatches and related problems.
This same logic applies to the caller when setting the property. The solution will assume that the caller has passed a VARIANT already converted to the proper VT_ type.
See illustrations of the implementation and/or calling of this interface in the samples Basic Project, Solution Extender, and Figures Project.