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] 수 추가 하는 영역입니다.
rgSynthReg
형식: array<Microsoft.VisualStudio.TextManager.Interop.NewSyntheticRegion[][in] 배열 cRegions 의 새로운 영역을 정의 하는 구조체입니다.
ppEnum
형식: array<Microsoft.VisualStudio.TextManager.Interop.IVsEnumSyntheticRegions[][out] May be 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 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.