SubscribeContextCallback<TContextItemType> 委托

定义一个在更改上下文项时调用的回调方法。

命名空间:  Microsoft.Windows.Design
程序集:  Microsoft.Windows.Design.Extensibility(在 Microsoft.Windows.Design.Extensibility.dll 中)

语法

声明
Public Delegate Sub SubscribeContextCallback(Of TContextItemType As ContextItem) ( _
    item As TContextItemType _
)
public delegate void SubscribeContextCallback<TContextItemType>(
    TContextItemType item
)
where TContextItemType : ContextItem
generic<typename TContextItemType>
where TContextItemType : ContextItem
public delegate void SubscribeContextCallback(
    TContextItemType item
)
type SubscribeContextCallback = 
    delegate of 
        item:'TContextItemType -> unit
JScript 不支持泛型类型或方法。

类型参数

  • TContextItemType

参数

  • item
    类型:TContextItemType
    已更改的上下文项。

备注

使用 Subscribe 方法订阅上下文项上的更改通知。

请参见

参考

Microsoft.Windows.Design 命名空间

ContextItemManager

SubscribeContextCallback

ServiceManager

FeatureManager

其他资源

编辑上下文体系结构

WPF 设计器扩展性