다음을 통해 공유


IVsSyntheticTextSession.AddSyntheticRegions 메서드

통합 텍스트 세션을 추가합니다.

네임스페이스:  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] 수 추가 하는 영역입니다.

반환 값

형식: 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 보안

참고 항목

참조

IVsSyntheticTextSession 인터페이스

Microsoft.VisualStudio.TextManager.Interop 네임스페이스