CodeCatchClause.LocalName 屬性

定義

取得或設定子 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 名稱。

備註

此特性指定了例外的區域變數名稱。 這個本地變數是可選的。 預設情況下,子句沒有此變數。

適用於