共用方式為


ITextViewRoleSet.Contains 方法

判斷指定的文字檢視角色是否為集合的成員。

命名空間:  Microsoft.VisualStudio.Text.Editor
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
Function Contains ( _
    textViewRole As String _
) As Boolean
bool Contains(
    string textViewRole
)
bool Contains(
    String^ textViewRole
)
abstract Contains : 
        textViewRole:string -> bool
function Contains(
    textViewRole : String
) : boolean

參數

  • textViewRole
    類型:String

    角色。

傳回值

類型:Boolean
true 如果指定的文字檢視角色是成員的集合,否則false。

例外狀況

例外狀況 條件
ArgumentNullException

textViewRole 為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

ITextViewRoleSet 介面

Microsoft.VisualStudio.Text.Editor 命名空間