设置用户首选项。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Public Overridable Function SetUserPreferences ( _
pViewPrefs As VIEWPREFERENCES(), _
pFramePrefs As FRAMEPREFERENCES(), _
pLangPrefs As LANGPREFERENCES(), _
pColorPrefs As FONTCOLORPREFERENCES() _
) As Integer
public virtual int SetUserPreferences(
VIEWPREFERENCES[] pViewPrefs,
FRAMEPREFERENCES[] pFramePrefs,
LANGPREFERENCES[] pLangPrefs,
FONTCOLORPREFERENCES[] pColorPrefs
)
public:
virtual int SetUserPreferences(
[InAttribute] array<VIEWPREFERENCES>^ pViewPrefs,
[InAttribute] array<FRAMEPREFERENCES>^ pFramePrefs,
[InAttribute] array<LANGPREFERENCES>^ pLangPrefs,
[InAttribute] array<FONTCOLORPREFERENCES>^ pColorPrefs
)
abstract SetUserPreferences :
pViewPrefs:VIEWPREFERENCES[] *
pFramePrefs:FRAMEPREFERENCES[] *
pLangPrefs:LANGPREFERENCES[] *
pColorPrefs:FONTCOLORPREFERENCES[] -> int
override SetUserPreferences :
pViewPrefs:VIEWPREFERENCES[] *
pFramePrefs:FRAMEPREFERENCES[] *
pLangPrefs:LANGPREFERENCES[] *
pColorPrefs:FONTCOLORPREFERENCES[] -> int
public function SetUserPreferences(
pViewPrefs : VIEWPREFERENCES[],
pFramePrefs : FRAMEPREFERENCES[],
pLangPrefs : LANGPREFERENCES[],
pColorPrefs : FONTCOLORPREFERENCES[]
) : int
参数
pViewPrefs
类型:array<Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES[][in] 描述的值所需的默认视图为所有编辑器视图标记。 有关更多信息,请参见 VIEWPREFERENCES。 ,如果视图首选项未设置,可以是 nullnull 引用(在 Visual Basic 中为 Nothing) 。
pFramePrefs
类型:array<Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[][in] 描述的值所需的默认值为所有编辑器框架标记。 有关更多信息,请参见 FRAMEPREFERENCES。 ,如果帧首选项未设置,可以是 nullnull 引用(在 Visual Basic 中为 Nothing) 。
pLangPrefs
类型:array<Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[][in] 描述语言所需的标志的值在结构指定了。 有关更多信息,请参见 LANGPREFERENCES。 ,如果语言首选项未设置,可以是 nullnull 引用(在 Visual Basic 中为 Nothing) 。
pColorPrefs
类型:array<Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[][in] 描述所有编辑视图的颜色和字体首选项的值。 此参数仅供内部编辑器使用。 ,因为该方法由外部包时,调用应是 nullnull 引用(在 Visual Basic 中为 Nothing) 。 有关更多信息,请参见 FONTCOLORPREFERENCES。
返回值
类型:Int32
实现
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。