RefreshPropertiesAttribute クラス
アセンブリ: System (system.dll 内)
構文
<AttributeUsageAttribute(AttributeTargets.All)> _ Public NotInheritable Class RefreshPropertiesAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.All)] public sealed class RefreshPropertiesAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::All)] public ref class RefreshPropertiesAttribute sealed : public Attribute
使用例
RefreshPropertiesAttribute クラスを使用して DataSource プロパティの更新モードを指定するコード例を次に示します。完全なコードの一覧については、「方法 : Windows フォーム コントロールに属性を適用する」を参照してください。
<Category("Data"), _ Description("Indicates the source of data for the control."), _ RefreshProperties(RefreshProperties.Repaint), _ AttributeProvider(GetType(IListSource))> _ Public Property DataSource() As Object Get Return Me.dataGridView1.DataSource End Get Set(ByVal value As Object) Me.dataGridView1.DataSource = value End Set End Property
System.Attribute
System.ComponentModel.RefreshPropertiesAttribute
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- RefreshPropertiesAttribute クラスのページへのリンク