ContextAttributes.Item メソッド
更新 : 2007 年 11 月
ContextAttributes コレクションの項目である ContextAttribute オブジェクトを返します。
名前空間 : EnvDTE
アセンブリ : EnvDTE (EnvDTE.dll 内)
構文
'宣言
Function Item ( _
index As Object _
) As ContextAttribute
'使用
Dim instance As ContextAttributes
Dim index As Object
Dim returnValue As ContextAttribute
returnValue = instance(index)
ContextAttribute Item(
Object index
)
ContextAttribute^ Item(
Object^ index
)
function Item(
index : Object
) : ContextAttribute
パラメータ
- index
型 : System.Object
戻り値
ContextAttribute オブジェクト。
解説
index に渡される値は、ContextAttributes コレクション内の ContextAttribute オブジェクトへのインデックスである整数、またはコレクション内の ContextAttribute の名前を表す文字列値です。
Item メソッドは、コレクションがインデックス値に対応するオブジェクトを見つけられない場合に ArgumentException 例外をスローします。
アクセス許可
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。