LevelCollection.Contains 方法

定义

重载

Contains(Level)

指示集合中是否包含指定的 Level

Contains(String)

指示集合中是否包含具有指定标识符的 Level

Contains(Level)

指示集合中是否包含指定的 Level

public bool Contains (Microsoft.AnalysisServices.Level item);
override this.Contains : Microsoft.AnalysisServices.Level -> bool
Public Function Contains (item As Level) As Boolean

参数

item
Level

要查找的 Level

返回

如果在集合中找到指定的 Level,则为 true;否则为 false。

适用于

Contains(String)

指示集合中是否包含具有指定标识符的 Level

public bool Contains (string id);
override this.Contains : string -> bool
Public Function Contains (id As String) As Boolean

参数

id
String

要查找的 Level 的标识符。

返回

如果在集合中找到指定的 Level,则为 true;否则为 false。

例外

指定的 ID 为空引用(在 Visual Basic 中为 Nothing)。

适用于