コード例 #1
0
 /// <summary>
 /// Activate this appender
 /// </summary>
 /// <remarks>
 /// <para>
 /// If a <see cref="Layout"/> has not been specified then this
 /// method will create a default <see cref="WmiLayout"/> instance.
 /// </para>
 /// </remarks>
 public void ActivateOptions()
 {
     if (m_layout == null)
     {
         m_layout = new WmiLayout();
     }
 }
コード例 #2
0
ファイル: WmiAppender.cs プロジェクト: Redi0/meijing-ui
		/// <summary>
		/// Activate this appender
		/// </summary>
		/// <remarks>
		/// <para>
		/// If a <see cref="Layout"/> has not been specified then this
		/// method will create a default <see cref="WmiLayout"/> instance.
		/// </para>
		/// </remarks>
		public void ActivateOptions() 
		{
			if (m_layout == null)
			{
				m_layout = new WmiLayout();
			}
		}