PropertyValueExceptionEventArgs 建構函式
初始化 PropertyValueExceptionEventArgs 類別的新執行個體。
命名空間: Microsoft.Windows.Design.PropertyEditing
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public Sub New ( _
message As String, _
value As PropertyValue, _
source As PropertyValueExceptionSource, _
exception As Exception _
)
public PropertyValueExceptionEventArgs(
string message,
PropertyValue value,
PropertyValueExceptionSource source,
Exception exception
)
public:
PropertyValueExceptionEventArgs(
String^ message,
PropertyValue^ value,
PropertyValueExceptionSource source,
Exception^ exception
)
new :
message:string *
value:PropertyValue *
source:PropertyValueExceptionSource *
exception:Exception -> PropertyValueExceptionEventArgs
public function PropertyValueExceptionEventArgs(
message : String,
value : PropertyValue,
source : PropertyValueExceptionSource,
exception : Exception
)
參數
- message
型別:System.String
指出失敗項目的訊息。
- value
型別:Microsoft.Windows.Design.PropertyEditing.PropertyValue
發生例外狀況的 PropertyValue。
- source
型別:Microsoft.Windows.Design.PropertyEditing.PropertyValueExceptionSource
產生這個例外狀況 (取得或設定) 的來源。
- exception
型別:System.Exception
內部例外狀況。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | message 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
PropertyValueExceptionEventArgs 類別
Microsoft.Windows.Design.PropertyEditing 命名空間