CodeCatchClause.LocalName 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定子 catch 句所處理的例外變數名稱。
public:
property System::String ^ LocalName { System::String ^ get(); void set(System::String ^ value); };
public string LocalName { get; set; }
member this.LocalName : string with get, set
Public Property LocalName As String
屬性值
子句所處理的例外變數 catch 名稱。
備註
此特性指定了例外的區域變數名稱。 這個本地變數是可選的。 預設情況下,子句沒有此變數。