IVsProjectCfgProvider.OpenProjectCfg(String, IVsProjectCfg) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides access to the IVsProjectCfg interface implemented on a project's configuration object.
public:
int OpenProjectCfg(System::String ^ szProjectCfgCanonicalName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsProjectCfg ^ % ppIVsProjectCfg);
public:
int OpenProjectCfg(Platform::String ^ szProjectCfgCanonicalName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsProjectCfg ^ & ppIVsProjectCfg);
int OpenProjectCfg(std::wstring const & szProjectCfgCanonicalName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsProjectCfg const & & ppIVsProjectCfg);
public int OpenProjectCfg (string szProjectCfgCanonicalName, out Microsoft.VisualStudio.Shell.Interop.IVsProjectCfg ppIVsProjectCfg);
abstract member OpenProjectCfg : string * IVsProjectCfg -> int
Public Function OpenProjectCfg (szProjectCfgCanonicalName As String, ByRef ppIVsProjectCfg As IVsProjectCfg) As Integer
Parameters
- szProjectCfgCanonicalName
- String
[in] Pointer to the canonical name of the configuration to access.
- ppIVsProjectCfg
- IVsProjectCfg
[out] Pointer to the IVsProjectCfg interface of the configuration identified by szProjectCfgCanonicalName
.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsProjectCfgProvider::OpenProjectCfg(
[in] LPCOLESTR szProjectCfgCanonicalName,
[out] IVsProjectCfg **ppIVsProjectCfg
);
A build configuration's canonical name is string concatenation of three strings: the <Configuration Name> the literal string "|" and the platform name. For example, "Debug|Win32" or "Release|Win64" are valid canonical configuration names.