GetByName méthode

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

Espace de noms :  Microsoft.AnalysisServices
Assembly :  Microsoft.AnalysisServices (dans Microsoft.AnalysisServices.dll)

Syntaxe

'Déclaration
Public Function GetByName ( _
    name As String _
) As Partition
'Utilisation
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

Paramètres

Valeur de retour

Type : Microsoft.AnalysisServices. . :: . .Partition
The Partition if contained in the collection.

Exceptions

Exception Condition
ItemNotFoundException

name is not contained by the collection.