ITextViewRoleSet.UnionWith 方法
取得一組及其他文字檢視角色集合的聯集。
命名空間: Microsoft.VisualStudio.Text.Editor
組件: Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)
語法
'宣告
Function UnionWith ( _
roleSet As ITextViewRoleSet _
) As ITextViewRoleSet
ITextViewRoleSet UnionWith(
ITextViewRoleSet roleSet
)
ITextViewRoleSet^ UnionWith(
ITextViewRoleSet^ roleSet
)
abstract UnionWith :
roleSet:ITextViewRoleSet -> ITextViewRoleSet
function UnionWith(
roleSet : ITextViewRoleSet
) : ITextViewRoleSet
參數
roleSet
類型:Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet第二個的文字檢視角色的設定。
傳回值
類型:Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet
聯集的一組及其他文字檢視角色設定。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | roleSet 為 nullnull 參考 (即 Visual Basic 中的 Nothing)。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。