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


Метод GetByName

Gets the Partition, with the specified name, from the collection.

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

Синтаксис

'Декларация
Public Function GetByName ( _
    name As String _
) As Partition
'Применение
Dim instance As PartitionCollection
Dim name As String
Dim returnValue As Partition

returnValue = instance.GetByName(name)
public Partition GetByName(
    string name
)
public:
Partition^ GetByName(
    String^ name
)
member GetByName : 
        name:string -> Partition 
public function GetByName(
    name : String
) : Partition

Параметры

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

Тип: Microsoft.AnalysisServices. . :: . .Partition
The Partition if contained in the collection.

Исключения

Исключение Условие
ItemNotFoundException

name is not contained by the collection.