IVsSolution.GetSolutionInfo Method
Returns the required solution file information.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetSolutionInfo ( _
<OutAttribute> ByRef pbstrSolutionDirectory As String, _
<OutAttribute> ByRef pbstrSolutionFile As String, _
<OutAttribute> ByRef pbstrUserOptsFile As String _
) As Integer
'Usage
Dim instance As IVsSolution
Dim pbstrSolutionDirectory As String
Dim pbstrSolutionFile As String
Dim pbstrUserOptsFile As String
Dim returnValue As Integer
returnValue = instance.GetSolutionInfo(pbstrSolutionDirectory, _
pbstrSolutionFile, pbstrUserOptsFile)
int GetSolutionInfo(
out string pbstrSolutionDirectory,
out string pbstrSolutionFile,
out string pbstrUserOptsFile
)
int GetSolutionInfo(
[OutAttribute] String^% pbstrSolutionDirectory,
[OutAttribute] String^% pbstrSolutionFile,
[OutAttribute] String^% pbstrUserOptsFile
)
abstract GetSolutionInfo :
pbstrSolutionDirectory:string byref *
pbstrSolutionFile:string byref *
pbstrUserOptsFile:string byref -> int
function GetSolutionInfo(
pbstrSolutionDirectory : String,
pbstrSolutionFile : String,
pbstrUserOptsFile : String
) : int
Parameters
- pbstrSolutionDirectory
Type: System.String%
[out] Pointer to the solution directory.
- pbstrSolutionFile
Type: System.String%
[out] Pointer to the solution file name.
- pbstrUserOptsFile
Type: System.String%
[out] Pointer to the solutions options file name.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsSolution::GetSolutionInfo(
[out] BSTR *pbstrSolutionDirectory,
[out] BSTR *pbstrSolutionFile,
[out] BSTR *pbstrUserOptsFile
);
.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.