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
)
abstract GetCfgOfName :
pszCfgName:string *
pszPlatformName:string *
ppCfg:IVsCfg byref -> int
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.
- ppCfg
Type: Microsoft.VisualStudio.Shell.Interop.IVsCfg%
[out] Indirect pointer to the IVsCfg interface of the requested configuration object.
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.