public void UpdateKeys(ViewKeyCollection keys)
        {
            if (keys == null)
            {
                throw new ArgumentNullException("keys");
            }

            m_data.Keys        = keys;
            m_data.LastUpdated = DateTime.Now();
        }
示例#2
0
        internal DateTime EnsureEffectiveDate()
        {
            if (this.EffectiveDate == null)
            {
                DateTime effDate = null;
                if (this.HasTypedData)
                {
                    effDate = this.TypedData.GetDateForEffectiveDate();
                }
                if (effDate == null)
                {
                    effDate = DateTime.Now();
                }
                this.EffectiveDate = effDate;
            }

            return(this.EffectiveDate);
        }