XmlElementAttributes.Contains(XmlElementAttribute) 方法

定义

确定集合中是否包含指定的对象。

public:
 bool Contains(System::Xml::Serialization::XmlElementAttribute ^ attribute);
public bool Contains (System.Xml.Serialization.XmlElementAttribute attribute);
public bool Contains (System.Xml.Serialization.XmlElementAttribute? attribute);
member this.Contains : System.Xml.Serialization.XmlElementAttribute -> bool
Public Function Contains (attribute As XmlElementAttribute) As Boolean

参数

attribute
XmlElementAttribute

要查找的 XmlElementAttribute

返回

Boolean

如果该集合中存在对象,则为 true;否则为 false

适用于