語言

Cast<TOperand,TResult>.Checked 屬性

定義

取得或設定一個值,指示cast操作是否在已檢查的上下文中執行。

public:
 property bool Checked { bool get(); void set(bool value); };
public bool Checked { get; set; }
member this.Checked : bool with get, set
Public Property Checked As Boolean

屬性值

true如果鑄造操作在已檢查的上下文中執行;否則,。 false 預設值為 true。

備註

預設情況下,Cast<TOperand,TResult>活動會在已檢查的上下文中執行,若投射操作導致溢位則拋出 。OverflowException

適用於