更新 : 2007 年 11 月
コンテキスト項目が変更された場合に呼び出されるコールバック メソッドを定義します。
名前空間 : Microsoft.Windows.Design
アセンブリ : Microsoft.Windows.Design (Microsoft.Windows.Design.dll 内)
構文
'宣言
Public Delegate Sub SubscribeContextCallback(Of ContextItemType As ContextItem) ( _
item As ContextItemType _
)
'使用
Dim instance As New SubscribeContextCallback(Of ContextItemType)(AddressOf HandlerMethod)
public delegate void SubscribeContextCallback<ContextItemType>(
ContextItemType item
)
where ContextItemType : ContextItem
generic<typename ContextItemType>
where ContextItemType : ContextItem
public delegate void SubscribeContextCallback(
ContextItemType item
)
JScript では、ジェネリックな型またはメソッドは使用できません。
型パラメータ
- ContextItemType
パラメータ
item
型 : ContextItemType変更されたコンテキスト項目。
解説
Subscribe メソッドを使用して、コンテキスト項目に対する変更通知をサブスクライブします。