添加聚合文本会话。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function AddSyntheticRegions ( _
dwUpdateFlags As UInteger, _
cRegions As Integer, _
rgSynthReg As NewSyntheticRegion(), _
<OutAttribute> ppEnum As IVsEnumSyntheticRegions() _
) As Integer
int AddSyntheticRegions(
uint dwUpdateFlags,
int cRegions,
NewSyntheticRegion[] rgSynthReg,
IVsEnumSyntheticRegions[] ppEnum
)
int AddSyntheticRegions(
[InAttribute] unsigned int dwUpdateFlags,
[InAttribute] int cRegions,
[InAttribute] array<NewSyntheticRegion>^ rgSynthReg,
[OutAttribute] array<IVsEnumSyntheticRegions^>^ ppEnum
)
abstract AddSyntheticRegions :
dwUpdateFlags:uint32 *
cRegions:int *
rgSynthReg:NewSyntheticRegion[] *
ppEnum:IVsEnumSyntheticRegions[] byref -> int
function AddSyntheticRegions(
dwUpdateFlags : uint,
cRegions : int,
rgSynthReg : NewSyntheticRegion[],
ppEnum : IVsEnumSyntheticRegions[]
) : int
参数
dwUpdateFlags
类型:UInt32[in] 更新标志。 有关 dwUpdateFlags 的值请参见 CHANGE_SYNTHETIC_REGION_FLAGS 枚举。
cRegions
类型:Int32[in] 添加区域的数字。
rgSynthReg
类型:array<Microsoft.VisualStudio.TextManager.Interop.NewSyntheticRegion[][in] 数组定义新的区域的 cRegions 结构。
ppEnum
类型:array<Microsoft.VisualStudio.TextManager.Interop.IVsEnumSyntheticRegions[][out] 可能为 nullnull 引用(在 Visual Basic 中为 Nothing);如果非 null,则将返回的新区域的枚举。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsSyntheticTextSession::AddSyntheticRegions(
[in] DWORD dwUpdateFlags,
[in] long cRegions,
[in, size_is(cRegions)] NewSyntheticRegion *rgSynthReg,
[out] IVsEnumSyntheticRegions **ppEnum
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。