ConfigurationElement.OnRequiredPropertyNotFound(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
找不到必要屬性時擲回例外狀況。
protected:
virtual System::Object ^ OnRequiredPropertyNotFound(System::String ^ name);
protected virtual object OnRequiredPropertyNotFound(string name);
abstract member OnRequiredPropertyNotFound : string -> obj
override this.OnRequiredPropertyNotFound : string -> obj
Protected Overridable Function OnRequiredPropertyNotFound (name As String) As Object
參數
- name
- String
未找到所需的屬性名稱。
傳回
例外狀況
無論哪種情況。
備註
當在反序列化OnDeserializeUnrecognizedElement物件時遇到未知屬性時會呼叫 。ConfigurationElement