Exemplo n.º 1
0
		/// <summary>
		/// This constructor is used when we have just the name
		/// </summary>
		public PolicySet( string name )
		{
			if (name == null)
			{
				System.Diagnostics.Trace.WriteLine( Properties.Resources.TRACE_NULL, "PolicySet Constructor 1" );
				throw ( new ArgumentNullException( "name", Properties.Resources.TRACE_NULL ) );
			}
			m_name = name;
			m_TracePolicys = new TracePolicyCollection();
		}
Exemplo n.º 2
0
		/// <summary>
		/// This constructor is used when we have just the name
		/// </summary>
		public PolicySet( Guid messageId, string name, DateTime scannedDate )
		{
			if (name == null)
			{
				System.Diagnostics.Trace.WriteLine( Properties.Resources.TRACE_NULL, "PolicySet Constructor 1" );
				throw ( new ArgumentNullException( "item", Properties.Resources.TRACE_NULL ) );
			}
            m_msgId = messageId;
			m_name = name;
			m_dateScanned = scannedDate;
			m_TracePolicys = new TracePolicyCollection();
		}
Exemplo n.º 3
0
		/// <summary>
		/// This constructor will create an empty class, normally
		/// used when the Node property is assigned
		/// </summary>
		public PolicySet(Guid id)
		{
			m_TracePolicys = new TracePolicyCollection();
            m_msgId = id;
		}