CodeCatchClause.LocalName 属性

定义

获取或设置 catch 子句处理的异常的变量名称。Gets or sets the variable name of the exception that the catch clause handles.

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

属性值

String

catch 子句处理的异常变量的名称。The name for the exception variable that the catch clause handles.

注解

此属性指定异常的局部变量的名称。This property specifies the name of the local variable for the exception. 此本地变量是可选的。This local variable is optional. 默认情况下,子句没有此变量。By default, the clause does not have this variable.

适用于