共用方式為


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

適用於