This documentation is archived and is not being maintained.

CodeGeneratorOptions.ElseOnClosing Property

Gets or sets a value indicating whether to append an else, catch, or finally block, including brackets, at the closing line of each previous if or try block.

Namespace: System.CodeDom.Compiler
Assembly: System (in system.dll)

public bool ElseOnClosing { get; set; }
/** @property */
public boolean get_ElseOnClosing ()

/** @property */
public void set_ElseOnClosing (boolean value)

public function get ElseOnClosing () : boolean

public function set ElseOnClosing (value : boolean)

Not applicable.

Property Value

true if an else should be appended; otherwise, false. The default value of this property is false.

Windows 98, Windows Server 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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: