ConfigurationErrorsException.Message 属性
定义
获取对引发此配置异常的原因的补充说明。Gets an extended description of why this configuration exception was thrown.
public:
virtual property System::String ^ Message { System::String ^ get(); };
public override string Message { get; }
member this.Message : string
Public Overrides ReadOnly Property Message As String
属性值
对引发此 ConfigurationErrorsException 异常的原因的补充说明。An extended description of why this ConfigurationErrorsException exception was thrown.
示例
下面的代码示例演示如何获取 Message 属性值。The following code example shows how to get the Message property value.
string msg = err.Message;
Console.WriteLine("Message: {0}", msg);
Dim msg As String = err.Message
Console.WriteLine("Message: {0}", msg)