IVsProjectCfgProvider.OpenProjectCfg Method

Provides access to the IVsProjectCfg interface implemented on a project's configuration object.

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

Syntax

声明
Function OpenProjectCfg ( _
    szProjectCfgCanonicalName As String, _
    <OutAttribute> ByRef ppIVsProjectCfg As IVsProjectCfg _
) As Integer
用法
Dim instance As IVsProjectCfgProvider
Dim szProjectCfgCanonicalName As String
Dim ppIVsProjectCfg As IVsProjectCfg
Dim returnValue As Integer

returnValue = instance.OpenProjectCfg(szProjectCfgCanonicalName, _
    ppIVsProjectCfg)
int OpenProjectCfg(
    string szProjectCfgCanonicalName,
    out IVsProjectCfg ppIVsProjectCfg
)
int OpenProjectCfg(
    [InAttribute] String^ szProjectCfgCanonicalName, 
    [OutAttribute] IVsProjectCfg^% ppIVsProjectCfg
)
abstract OpenProjectCfg : 
        szProjectCfgCanonicalName:string * 
        ppIVsProjectCfg:IVsProjectCfg byref -> int 
function OpenProjectCfg(
    szProjectCfgCanonicalName : String, 
    ppIVsProjectCfg : IVsProjectCfg
) : int

Parameters

  • szProjectCfgCanonicalName
    Type: System.String
    [in] Pointer to the canonical name of the configuration to access.

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 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.

.NET Framework Security

See Also

Reference

IVsProjectCfgProvider Interface

IVsProjectCfgProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace