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

'宣言
Function GetCfgOfName ( _
    pszCfgName As String, _
    pszPlatformName As String, _
    <OutAttribute> ByRef ppCfg As IVsCfg _
) As Integer
'使用
Dim instance As IVsCfgProvider2
Dim pszCfgName As String
Dim pszPlatformName As String
Dim ppCfg As IVsCfg
Dim returnValue As Integer

returnValue = instance.GetCfgOfName(pszCfgName, _
    pszPlatformName, ppCfg)
int GetCfgOfName(
    string pszCfgName,
    string pszPlatformName,
    out IVsCfg ppCfg
)
int GetCfgOfName(
    [InAttribute] String^ pszCfgName, 
    [InAttribute] String^ pszPlatformName, 
    [OutAttribute] IVsCfg^% ppCfg
)
function GetCfgOfName(
    pszCfgName : String, 
    pszPlatformName : String, 
    ppCfg : IVsCfg
) : int

Parameters

  • pszCfgName
    Type: System.String

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

  • pszPlatformName
    Type: System.String

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

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 IVsCfgProvider2::GetCfgOfName(
   [in] LPCOLESTR pszCfgName,
   [in] LPCOLESTR pszPlatformName,
   [out] IVsCfg **ppCfg
);

Permissions

See Also

Reference

IVsCfgProvider2 Interface

IVsCfgProvider2 Members

Microsoft.VisualStudio.Shell.Interop Namespace