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

屬性值

A CodeExpression 代表要拋出的例外實例。

適用於

另請參閱