Поделиться через


ModelComponentCollection.GetItem Method

Gets

Пространство имен: Microsoft.AnalysisServices
Сборка: Microsoft.AnalysisServices (in microsoft.analysisservices.dll)

Синтаксис

'Декларация
Protected Function GetItem ( _
    key As String, _
    throwIfNotFound As Boolean, _
    keyPropertyName As String _
) As IModelComponent
protected IModelComponent GetItem (
    string key,
    bool throwIfNotFound,
    string keyPropertyName
)
protected:
IModelComponent^ GetItem (
    String^ key, 
    bool throwIfNotFound, 
    String^ keyPropertyName
)
protected IModelComponent GetItem (
    String key, 
    boolean throwIfNotFound, 
    String keyPropertyName
)
protected function GetItem (
    key : String, 
    throwIfNotFound : boolean, 
    keyPropertyName : String
) : IModelComponent

Параметры

  • throwIfNotFound
    true if ItemNotFoundException should be thrown if the key is not found in the ModelComponentCollection;otherwise, false.
  • keyPropertyName
    The name of the IModelComponent property that provides key values.

Возвращаемое значение

The IModelComponent that has the specified key.

Исключения

Тип исключения Условие
ItemNotFoundException

throwIfNotFound is set to false and one of the following conditions occurs:

key contains a null reference (Nothing in Visual Basic.)

-or-

key cannot be found in the ModelComponentCollection.

Синхронизация потоков

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

ModelComponentCollection Class
ModelComponentCollection Members
Microsoft.AnalysisServices Namespace