IVsPersistSolutionProps.ReadSolutionProps Method
Reads out solution properties from its .sln file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function ReadSolutionProps ( _
pHierarchy As IVsHierarchy, _
pszProjectName As String, _
pszProjectMk As String, _
pszKey As String, _
fPreLoad As Integer, _
pPropBag As IPropertyBag _
) As Integer
'Uso
Dim instance As IVsPersistSolutionProps
Dim pHierarchy As IVsHierarchy
Dim pszProjectName As String
Dim pszProjectMk As String
Dim pszKey As String
Dim fPreLoad As Integer
Dim pPropBag As IPropertyBag
Dim returnValue As Integer
returnValue = instance.ReadSolutionProps(pHierarchy, _
pszProjectName, pszProjectMk, pszKey, _
fPreLoad, pPropBag)
int ReadSolutionProps(
IVsHierarchy pHierarchy,
string pszProjectName,
string pszProjectMk,
string pszKey,
int fPreLoad,
IPropertyBag pPropBag
)
int ReadSolutionProps(
[InAttribute] IVsHierarchy^ pHierarchy,
[InAttribute] String^ pszProjectName,
[InAttribute] String^ pszProjectMk,
[InAttribute] String^ pszKey,
[InAttribute] int fPreLoad,
[InAttribute] IPropertyBag^ pPropBag
)
abstract ReadSolutionProps :
pHierarchy:IVsHierarchy *
pszProjectName:string *
pszProjectMk:string *
pszKey:string *
fPreLoad:int *
pPropBag:IPropertyBag -> int
function ReadSolutionProps(
pHierarchy : IVsHierarchy,
pszProjectName : String,
pszProjectMk : String,
pszKey : String,
fPreLoad : int,
pPropBag : IPropertyBag
) : int
Parameters
- pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] Pointer to the IVsHierarchy interface. nulla null reference (Nothing in Visual Basic) for preSolution or global sections because the hierarchy does not exist if the solution has yet to create it, or because the section being loaded is global.
- pszProjectName
Type: System.String
[in] nulla null reference (Nothing in Visual Basic) for global sections, which means a load for the global section of the solution (.sln) file.
- pszProjectMk
Type: System.String
[in] nulla null reference (Nothing in Visual Basic) for global sections, which means a load for the global section of the solution (.sln) file.
- pszKey
Type: System.String
[in] Name of the solution's property set, that is, its property bag.
- fPreLoad
Type: System.Int32
[in] Indicator of whether a ReadSolutionProps call is from a pre- or post-load section.
- pPropBag
Type: Microsoft.VisualStudio.OLE.Interop.IPropertyBag
[in] Pointer to the IPropertyBag interface.
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 IVsPersistSolutionProps::ReadSolutionProps(
[in] IVsHierarchy *pHierarchy,
[in] LPCOLESTR pszProjectName,
[in] LPCOLESTR pszProjectMk,
[in] LPCOLESTR pszKey,
[in] BOOL fPreLoad,
[in] IPropertyBag *pPropBag
);
Called by the environment when loading the solution file so it can use the registry to map the pszKey to a particular VSPackage.
.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
IVsPersistSolutionProps Interface