Share via


ObjectPath.ContainsProperty(Object, String) 方法

定义

检测对象上是否存在属性。

public static bool ContainsProperty (object obj, string name);
static member ContainsProperty : obj * string -> bool
Public Shared Function ContainsProperty (obj As Object, name As String) As Boolean

参数

obj
Object

的名称。

name
String

属性的名称。

返回

如果找到,则为 true。

适用于