返回用户首选项,例如选项使用、缩进大小和小部件边距显示一个视图、框架和语言服务的。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Public Overridable Function GetUserPreferences ( _
<OutAttribute> pViewPrefs As VIEWPREFERENCES(), _
<OutAttribute> pFramePrefs As FRAMEPREFERENCES(), _
<OutAttribute> pLangPrefs As LANGPREFERENCES(), _
<OutAttribute> pColorPrefs As FONTCOLORPREFERENCES() _
) As Integer
public virtual int GetUserPreferences(
VIEWPREFERENCES[] pViewPrefs,
FRAMEPREFERENCES[] pFramePrefs,
LANGPREFERENCES[] pLangPrefs,
FONTCOLORPREFERENCES[] pColorPrefs
)
public:
virtual int GetUserPreferences(
[OutAttribute] array<VIEWPREFERENCES>^ pViewPrefs,
[OutAttribute] array<FRAMEPREFERENCES>^ pFramePrefs,
[InAttribute] [OutAttribute] array<LANGPREFERENCES>^ pLangPrefs,
[InAttribute] [OutAttribute] array<FONTCOLORPREFERENCES>^ pColorPrefs
)
abstract GetUserPreferences :
pViewPrefs:VIEWPREFERENCES[] byref *
pFramePrefs:FRAMEPREFERENCES[] byref *
pLangPrefs:LANGPREFERENCES[] byref *
pColorPrefs:FONTCOLORPREFERENCES[] byref -> int
override GetUserPreferences :
pViewPrefs:VIEWPREFERENCES[] byref *
pFramePrefs:FRAMEPREFERENCES[] byref *
pLangPrefs:LANGPREFERENCES[] byref *
pColorPrefs:FONTCOLORPREFERENCES[] byref -> int
public function GetUserPreferences(
pViewPrefs : VIEWPREFERENCES[],
pFramePrefs : FRAMEPREFERENCES[],
pLangPrefs : LANGPREFERENCES[],
pColorPrefs : FONTCOLORPREFERENCES[]
) : int
参数
pViewPrefs
类型:array<Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES[][out] 查看首选项的指针。 有关 pViewPrefs的更多信息,请参见VIEWPREFERENCES。
pFramePrefs
类型:array<Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[][out] 对框架首选项的指针。 有关 pFramePrefs的更多信息,请参见FRAMEPREFERENCES。
pLangPrefs
类型:array<Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[][in, out] 对语言首选项的指针。 有关 pLangPrefs的更多信息,请参见LANGPREFERENCES。
pColorPrefs
类型:array<Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[][in, out] 对字体颜色的喜好的指针。 有关 pCOlorPrefs的更多信息,请参见FONTCOLORPREFERENCES。
返回值
类型:Int32
实现
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。