IVsTextManager2.SetUserPreferences2 메서드
사용자 기본 설정을 설정합니다.
네임스페이스: Microsoft.VisualStudio.TextManager.Interop
어셈블리: Microsoft.VisualStudio.TextManager.Interop.8.0(Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
구문
‘선언
Function SetUserPreferences2 ( _
pViewPrefs As VIEWPREFERENCES2(), _
pFramePrefs As FRAMEPREFERENCES2(), _
pLangPrefs As LANGPREFERENCES2(), _
pColorPrefs As FONTCOLORPREFERENCES2() _
) As Integer
int SetUserPreferences2(
VIEWPREFERENCES2[] pViewPrefs,
FRAMEPREFERENCES2[] pFramePrefs,
LANGPREFERENCES2[] pLangPrefs,
FONTCOLORPREFERENCES2[] pColorPrefs
)
int SetUserPreferences2(
[InAttribute] array<VIEWPREFERENCES2>^ pViewPrefs,
[InAttribute] array<FRAMEPREFERENCES2>^ pFramePrefs,
[InAttribute] array<LANGPREFERENCES2>^ pLangPrefs,
[InAttribute] array<FONTCOLORPREFERENCES2>^ pColorPrefs
)
abstract SetUserPreferences2 :
pViewPrefs:VIEWPREFERENCES2[] *
pFramePrefs:FRAMEPREFERENCES2[] *
pLangPrefs:LANGPREFERENCES2[] *
pColorPrefs:FONTCOLORPREFERENCES2[] -> int
function SetUserPreferences2(
pViewPrefs : VIEWPREFERENCES2[],
pFramePrefs : FRAMEPREFERENCES2[],
pLangPrefs : LANGPREFERENCES2[],
pColorPrefs : FONTCOLORPREFERENCES2[]
) : int
매개 변수
pViewPrefs
형식: array<Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES2[][in] 원하는 기본 보기 플래그 편집기의 모든 보기에 대해 설명 하는 값입니다. 자세한 내용은 VIEWPREFERENCES2를 참조하십시오. 수 있습니다 nullNull 참조(Visual Basic의 경우 Nothing) 보기 기본 설정 되는 경우.
pFramePrefs
형식: array<Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES2[][in] 원하는 기본 플래그 편집기의 모든 프레임에 대해 설명 하는 값입니다. 자세한 내용은 FRAMEPREFERENCES2를 참조하십시오. 수 있습니다 nullNull 참조(Visual Basic의 경우 Nothing) 프레임 기본 설정을 설정 하지 않은 경우.
pLangPrefs
형식: array<Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES2[][in] 원하는 플래그는 구조체에 지정 된 언어에 대해 설명 하는 값입니다. 자세한 내용은 LANGPREFERENCES2를 참조하십시오. 수 있습니다 nullNull 참조(Visual Basic의 경우 Nothing) 언어 기본 설정을 설정 하지 않은 경우.
pColorPrefs
형식: array<Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES2[][in] 글꼴 환경 설정 편집기의 모든 보기에 대해 설명 하는 값입니다. 이 매개 변수는 내부 편집기 사용입니다. 수 있습니다 nullNull 참조(Visual Basic의 경우 Nothing) 외부 패키지에서이 메서드를 호출 하면 됩니다. 자세한 내용은 FONTCOLORPREFERENCES2를 참조하십시오.
반환 값
형식: Int32
메서드가 성공 하면, 반환 S_OK.실패할 경우 오류 코드를 반환합니다.
설명
COM 시그니처
Textmgr.idl에서:
HRESULT IVsTextManager2::SetUserPreferences2(
[in] const VIEWPREFERENCES2 * pViewPrefs,
[in] const FRAMEPREFERENCES2 * pFramePrefs,
[in] const LANGPREFERENCES2 * pLangPrefs,
[in] const FONTCOLORPREFERENCES2 * pColorPrefs
);
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.