SubscribeContextCallback<ContextItemType> 委托

更新: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 方法可以订阅上下文项的更改通知。

另请参见

参考

Microsoft.Windows.Design 命名空间

ContextItemManager

SubscribeContextCallback

ServiceManager

FeatureManager

其他资源

编辑上下文体系结构

WPF 设计器扩展性