IHierarchicalDataSourceDesigner.CanRefreshSchema 属性

定义

获取一个值,该值指示是否可以调用 RefreshSchema(Boolean) 方法。Gets a value indicating whether the RefreshSchema(Boolean) method can be called.

public:
 property bool CanRefreshSchema { bool get(); };
public bool CanRefreshSchema { get; }
member this.CanRefreshSchema : bool
Public ReadOnly Property CanRefreshSchema As Boolean

属性值

Boolean

如果可以调用 RefreshSchema(Boolean),则为 true;否则为 falsetrue if RefreshSchema(Boolean) can be called; otherwise, false.

注解

CanRefreshSchema设计宿主(如 Visual Studio 2005)使用属性来确定是否在设计时显示 刷新架构 命令。The CanRefreshSchema property is used by a design host, such as Visual Studio 2005, to determine whether to display a Refresh Schema command at design time.

实施者说明

如果实现 IHierarchicalDataSourceDesigner 接口来创建自己的数据源,并且架构将永远不会更改,则 CanRefreshSchema 属性应始终返回, false RefreshSchema(Boolean) 方法应引发 NotSupportedExceptionIf you implement the IHierarchicalDataSourceDesigner interface to create your own data source and the schema will never change, the CanRefreshSchema property should always return false and the RefreshSchema(Boolean) method should raise a NotSupportedException.

适用于

另请参阅