IVsGetCfgProvider.GetCfgProvider Method
Returns a pointer to IVsCfgProvider so that the package can retrieve information relating to the project's configuration.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function GetCfgProvider ( _
<OutAttribute> ByRef ppCfgProvider As IVsCfgProvider _
) As Integer
'使用
Dim instance As IVsGetCfgProvider
Dim ppCfgProvider As IVsCfgProvider
Dim returnValue As Integer
returnValue = instance.GetCfgProvider(ppCfgProvider)
int GetCfgProvider(
out IVsCfgProvider ppCfgProvider
)
int GetCfgProvider(
[OutAttribute] IVsCfgProvider^% ppCfgProvider
)
function GetCfgProvider(
ppCfgProvider : IVsCfgProvider
) : int
Parameters
ppCfgProvider
Type: Microsoft.VisualStudio.Shell.Interop.IVsCfgProvider%[out] Pointer to an IVsCfgProvider.
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 IVsGetCfgProvider::GetCfgProvider(
[out] IVsCfgProvider** ppCfgProvider
);
Permissions
- 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.