更新:2007 年 11 月
获取设计器的编辑上下文。
命名空间: Microsoft.Windows.Design.Policies
程序集: Microsoft.Windows.Design.Extensibility(在 Microsoft.Windows.Design.Extensibility.dll 中)
语法
声明
Protected ReadOnly Property Context As EditingContext
用法
Dim value As EditingContext
value = Me.Context
protected EditingContext Context { get; }
protected:
property EditingContext^ Context {
EditingContext^ get ();
}
protected function get Context () : EditingContext
属性值
类型:Microsoft.Windows.Design.EditingContext
异常
异常 | 条件 |
---|---|
InvalidOperationException | 策略尚未激活。 |
备注
如果尝试在策略未激活时访问它,Context 属性会引发一个异常。
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
另请参见
参考
Microsoft.Windows.Design.Policies 命名空间