Point3DKeyFrameCollection.Contains(Point3DKeyFrame) Point3DKeyFrameCollection.Contains(Point3DKeyFrame) Point3DKeyFrameCollection.Contains(Point3DKeyFrame) Point3DKeyFrameCollection.Contains(Point3DKeyFrame) Method

定义

获取一个指示集合是否包含指定 Point3DKeyFrame 的值。Gets a value that indicates whether the collection contains the specified Point3DKeyFrame.

public:
 bool Contains(System::Windows::Media::Animation::Point3DKeyFrame ^ keyFrame);
public bool Contains (System.Windows.Media.Animation.Point3DKeyFrame keyFrame);
member this.Contains : System.Windows.Media.Animation.Point3DKeyFrame -> bool
Public Function Contains (keyFrame As Point3DKeyFrame) As Boolean

参数

keyFrame
Point3DKeyFrame Point3DKeyFrame Point3DKeyFrame Point3DKeyFrame

要在集合中查找的 Point3DKeyFrameThe Point3DKeyFrame to locate in the collection.

返回

如果集合包含 keyFrame,则为 true;否则为 falsetrue if the collection contains keyFrame; otherwise, false.

注解

此方法执行线性搜索;因此, 平均执行时间与成正比CountThis method performs a linear search; therefore, the average execution time is proportional to Count. 也就是说, 此方法的运算复杂度为 O (n), 其中nCountThat is, this method is an O(n) operation, where n is Count.

此方法通过调用Object.Equals来确定相等性。This method determines equality by calling Object.Equals.

适用于

另请参阅