共用方式為


IVsHiddenTextSessionEx.AddHiddenRegionsEx Method

Adds IVsHiddenRegionEx objects.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'宣告
Function AddHiddenRegionsEx ( _
    dwUpdateFlags As UInteger, _
    cRegions As Integer, _
    rgHidReg As NewHiddenRegionEx(), _
    <OutAttribute> ByRef ppEnum As IVsEnumHiddenRegions _
) As Integer
int AddHiddenRegionsEx(
    uint dwUpdateFlags,
    int cRegions,
    NewHiddenRegionEx[] rgHidReg,
    out IVsEnumHiddenRegions ppEnum
)
int AddHiddenRegionsEx(
    [InAttribute] unsigned int dwUpdateFlags, 
    [InAttribute] int cRegions, 
    [InAttribute] array<NewHiddenRegionEx>^ rgHidReg, 
    [OutAttribute] IVsEnumHiddenRegions^% ppEnum
)
abstract AddHiddenRegionsEx : 
        dwUpdateFlags:uint32 * 
        cRegions:int * 
        rgHidReg:NewHiddenRegionEx[] * 
        ppEnum:IVsEnumHiddenRegions byref -> int 
function AddHiddenRegionsEx(
    dwUpdateFlags : uint, 
    cRegions : int, 
    rgHidReg : NewHiddenRegionEx[], 
    ppEnum : IVsEnumHiddenRegions
) : int

Parameters

  • cRegions
    Type: System.Int32
    [in] The number of regions to add.

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 textmgr2.idl:

HRESULT IVsHiddenTextSessionEx::AddHiddenRegionsEx(
   [in] DWORD dwUpdateFlags,
   [in] long cRegions,
   [in, size_is(cRegions)] NewHiddenRegionEx *rgHidReg,
   [out] IVsEnumHiddenRegions **ppEnum
);

.NET Framework Security

See Also

Reference

IVsHiddenTextSessionEx Interface

Microsoft.VisualStudio.TextManager.Interop Namespace