Compartilhar via


IVsCfgProvider2.GetCfgOfName Method

Returns the configuration object associated with a specified configuration property or platform name.

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

Syntax

'Declaration
Function GetCfgOfName ( _
    pszCfgName As String, _
    pszPlatformName As String, _
    <OutAttribute> ByRef ppCfg As IVsCfg _
) As Integer
int GetCfgOfName(
    string pszCfgName,
    string pszPlatformName,
    out IVsCfg ppCfg
)
int GetCfgOfName(
    [InAttribute] String^ pszCfgName, 
    [InAttribute] String^ pszPlatformName, 
    [OutAttribute] IVsCfg^% ppCfg
)
abstract GetCfgOfName : 
        pszCfgName:string * 
        pszPlatformName:string * 
        ppCfg:IVsCfg byref -> int
function GetCfgOfName(
    pszCfgName : String, 
    pszPlatformName : String, 
    ppCfg : IVsCfg
) : int

Parameters

  • pszCfgName
    Type: String

    [in] Pointer to the name of the configuration to be returned.

  • pszPlatformName
    Type: String

    [in] Pointer to the name of the platform for the configuration to be returned.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsCfgProvider2::GetCfgOfName(
   [in] LPCOLESTR pszCfgName,
   [in] LPCOLESTR pszPlatformName,
   [out] IVsCfg **ppCfg
);

.NET Framework Security

See Also

Reference

IVsCfgProvider2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace