timer的interval值最大到底是多少
2012-04-22 20:02
183 查看
反编.net framwork 我们可以得到
[DefaultValue(100), SRCategory("CatBehavior"), SRDescription("TimerIntervalDescr")]
public int Interval
{
get
{
return this.interval;
}
set
{
lock (this.syncObj)
{
if (value < 1)
{
object[] args = new object[] { value, 0.ToString(CultureInfo.CurrentCulture) };
throw new ArgumentOutOfRangeException("Interval", SR.GetString("TimerInvalidInterval", args));
}
if (this.interval != value)
{
this.interval = value;
if ((this.Enabled && !base.DesignMode) && (this.timerWindow != null))
{
this.timerWindow.RestartTimer(value);
}
}
}
}
}
说明这是个int32
而且呢 小于1的时候会报错哦
继续察看int32
[Serializable, StructLayout(LayoutKind.Sequential), ComVisible(true)]
public struct Int32 : IComparable, IFormattable, IConvertible, IComparable<int>, IEquatable<int>
{
[DefaultValue(100), SRCategory("CatBehavior"), SRDescription("TimerIntervalDescr")]
public int Interval
{
get
{
return this.interval;
}
set
{
lock (this.syncObj)
{
if (value < 1)
{
object[] args = new object[] { value, 0.ToString(CultureInfo.CurrentCulture) };
throw new ArgumentOutOfRangeException("Interval", SR.GetString("TimerInvalidInterval", args));
}
if (this.interval != value)
{
this.interval = value;
if ((this.Enabled && !base.DesignMode) && (this.timerWindow != null))
{
this.timerWindow.RestartTimer(value);
}
}
}
}
}
说明这是个int32
而且呢 小于1的时候会报错哦
继续察看int32
[Serializable, StructLayout(LayoutKind.Sequential), ComVisible(true)]
public struct Int32 : IComparable, IFormattable, IConvertible, IComparable<int>, IEquatable<int>
{
相关文章推荐
- vs2005 timer控件的interval值最大到底是多少?
- mysql VARCHAR的最大长度到底是多少
- MySQL VARCHAR的最大长度到底是多少
- [Timer]PC上8253计时器芯片精确频率到底是多少?
- MySQL VARCHAR字段最大长度到底是多少
- [Timer]PC上8253计时器芯片精确频率到底是多少?
- GET与POST可传递的最大值到底是多少?
- MySQL VARCHAR字段最大长度到底是多少
- int型的数到底最大值是多少?
- GET与POST可传递的最大值到底是多少?
- Windows操作系统单文件夹下到底能存放多少文件及单文件的最大容量
- [转]GET与POST可传递的最大值到底是多少?
- Mysql VARCHAR的最大长度到底是多少
- GET与POST可传递的最大值到底是多少
- Windows操作系统单文件夹下到底能存放多少文件及单文件的最大
- Windows操作系统单文件夹下到底能存放多少文件及单文件的最大容量
- int型的数到底最大值是多少?
- mysql VARCHAR的最大长度到底是多少
- 20130828 到底我能赚多少钱?
- scheduledTimerWithTimeInterval与timerWithTimeInterval的区别