CodeThrowExceptionStatement.ToThrow Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the exception to throw.

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

public CodeExpression ToThrow { get; set; }

Property Value

Type: System.CodeDom.CodeExpression

A CodeExpression representing an instance of the exception to throw.

.NET Framework
Available since 1.1
Return to top
Show: