Cast<TOperand,TResult>.Checked 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示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