Compartir a través de


GetByName Método

Gets the Trace that has the specified name from the collection.

Espacio de nombres:  Microsoft.AnalysisServices
Ensamblado:  Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)

Sintaxis

'Declaración
Public Function GetByName ( _
    name As String _
) As Trace
'Uso
Dim instance As TraceCollection
Dim name As String
Dim returnValue As Trace

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

Parámetros

Valor devuelto

Tipo: Microsoft.AnalysisServices. . :: . .Trace
The Trace if it exists in the collection.

Excepciones

Excepción Condición
ItemNotFoundException

name does not exist in the collection.