Partager via


Méthode GetName

Gets the name of the field at the specified column position.

Espace de noms :  Microsoft.SqlServer.Management.Trace
Assembly :  Microsoft.SqlServer.ConnectionInfoExtended (en Microsoft.SqlServer.ConnectionInfoExtended.dll)

Syntaxe

'Déclaration
Public Function GetName ( _
    ordinal As Integer _
) As String
'Utilisation
Dim instance As TraceReader
Dim ordinal As Integer
Dim returnValue As String

returnValue = instance.GetName(ordinal)
public string GetName(
    int ordinal
)
public:
virtual String^ GetName(
    int ordinal
) sealed
abstract GetName : 
        ordinal:int -> string 
override GetName : 
        ordinal:int -> string 
public final function GetName(
    ordinal : int
) : String

Paramètres

Valeur de retour

Type : System. . :: . .String
A String value that specifies the name of the specified column.

Implémente

IDataRecord. . :: . .GetName(Int32)

Exemples

Readme_Tracer