共用方式為


PropertyNotSetException 建構函式 (String, Exception)

初始化具有指定的訊息文字和內部例外狀況之 PropertyNotSetException 類別的新執行個體。

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'用途
Dim message As String 
Dim innerException As Exception 

Dim instance As New PropertyNotSetException(message, _
    innerException)
public PropertyNotSetException(
    string message,
    Exception innerException
)
public:
PropertyNotSetException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> PropertyNotSetException
public function PropertyNotSetException(
    message : String, 
    innerException : Exception
)

參數

  • message
    型別:String
    String 值,指定描述造成例外狀況之事件的訊息文字。
  • innerException
    型別:Exception
    包含內部例外狀況的 Exception 物件。 這個物件適用於某個例外狀況造成引發另一個例外狀況的情況。

請參閱

參考

PropertyNotSetException 類別

PropertyNotSetException 多載

Microsoft.SqlServer.Management.Common 命名空間