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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。