ConfigurationElement.OnRequiredPropertyNotFound(String) 方法

定义

找不到所需属性时引发异常。Throws an exception when a required property is not found.

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

找不到所需特性的名称。The name of the required attribute that was not found.

返回

无。None.

例外

在所有情况下。In all cases.

注解

当反序列化 ConfigurationElement 对象时遇到未知属性时,将调用 OnDeserializeUnrecognizedElementThe OnDeserializeUnrecognizedElement is invoked when an unknown attribute is encountered while deserializing the ConfigurationElement object.

适用于