返回一个或多个配置对象。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)
语法
声明
Function GetCfgs ( _
celt As UInteger, _
<OutAttribute> rgpcfg As IVsCfg(), _
<OutAttribute> pcActual As UInteger(), _
<OutAttribute> prgfFlags As UInteger() _
) As Integer
int GetCfgs(
uint celt,
IVsCfg[] rgpcfg,
uint[] pcActual,
uint[] prgfFlags
)
参数
- celt
类型:System.UInt32
[in] 配置对象将返回的或零的数字,指示对对象的一个未知数。
- rgpcfg
类型:array<Microsoft.VisualStudio.Shell.Interop.IVsCfg[]
[in, out, size_is(celt)] 在输入、指向接口数组或 nullnull 引用(在 Visual Basic 中为 Nothing)。在输出,此参数指向数组属于请求的配置对象的 IVsCfg 接口。
- pcActual
类型:array<System.UInt32[]
[out, optional] ,如果此信息不是必需的,为配置对象的指针实际返回或 nullnull 引用(在 Visual Basic 中为 Nothing)。
- prgfFlags
类型:array<System.UInt32[]
[out, optional] 为项目配置指定标志设置为或 nullnull 引用(在 Visual Basic 中为 Nothing) ,如果不需要其他标志设置为。有关有效的 prgrFlags 值,请参见 __VSCFGFLAGS。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 vsshell.idl:
HRESULT IVsProjectCfgProvider::GetCfgs(
[in] ULONG celt,
[in, out, size_is(celt)] IVsCfg *rgpcfg[],
[out, optional] ULONG *pcActual,
[out, optional] VSCFGFLAGS *prgfFlags
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。