Compartir a través de


IVsCfgProvider2.GetCfgOfName(String, String, IVsCfg) Method

Definition

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

public:
 int GetCfgOfName(System::String ^ pszCfgName, System::String ^ pszPlatformName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsCfg ^ % ppCfg);
public:
 int GetCfgOfName(Platform::String ^ pszCfgName, Platform::String ^ pszPlatformName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsCfg ^ &  ppCfg);
int GetCfgOfName(std::wstring const & pszCfgName, std::wstring const & pszPlatformName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsCfg const & & ppCfg);
public int GetCfgOfName (string pszCfgName, string pszPlatformName, out Microsoft.VisualStudio.Shell.Interop.IVsCfg ppCfg);
abstract member GetCfgOfName : string * string * IVsCfg -> int
Public Function GetCfgOfName (pszCfgName As String, pszPlatformName As String, ByRef ppCfg As IVsCfg) As Integer

Parameters

pszCfgName
String

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

pszPlatformName
String

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

ppCfg
IVsCfg

[out] Indirect pointer to the IVsCfg interface of the requested configuration object.

Returns

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  
);  

Applies to