CodeThrowExceptionStatement.ToThrow 属性

定义

获取或设置要引发的异常。

public:
 property System::CodeDom::CodeExpression ^ ToThrow { System::CodeDom::CodeExpression ^ get(); void set(System::CodeDom::CodeExpression ^ value); };
public System.CodeDom.CodeExpression ToThrow { get; set; }
member this.ToThrow : System.CodeDom.CodeExpression with get, set
Public Property ToThrow As CodeExpression

属性值

表示要引发的异常的实例的 CodeExpression

适用于

另请参阅