Freigeben über


TraceReader.GetChars-Methode (Int32, array<Char , Int32, Int32, Int32)

Gets a character array value from the record at the specified column position.

Namespace:  Microsoft.SqlServer.Management.Trace
Assembly:  Microsoft.SqlServer.ConnectionInfoExtended (in Microsoft.SqlServer.ConnectionInfoExtended.dll)

Syntax

'Declaration
Public Function GetChars ( _
    ordinal As Integer, _
    buffer As Char(), _
    length As Integer, _
    bufferoffset As Integer, _
    fieldoffset As Integer _
) As Integer
'Usage
Dim instance As TraceReader 
Dim ordinal As Integer 
Dim buffer As Char()
Dim length As Integer 
Dim bufferoffset As Integer 
Dim fieldoffset As Integer 
Dim returnValue As Integer 

returnValue = instance.GetChars(ordinal, _
    buffer, length, bufferoffset, fieldoffset)
public int GetChars(
    int ordinal,
    char[] buffer,
    int length,
    int bufferoffset,
    int fieldoffset
)
public:
int GetChars(
    int ordinal, 
    array<wchar_t>^ buffer, 
    int length, 
    int bufferoffset, 
    int fieldoffset
)
member GetChars : 
        ordinal:int * 
        buffer:char[] * 
        length:int * 
        bufferoffset:int * 
        fieldoffset:int -> int
public function GetChars(
    ordinal : int, 
    buffer : char[], 
    length : int, 
    bufferoffset : int, 
    fieldoffset : int
) : int

Parameter

  • ordinal
    Typ: System.Int32
    An Int32 value that specifies the column position at which to retrieve the character array value.
  • buffer
    Typ: array<System.Char[]
    A Uint8 array that specifies the buffer into which to read the character array.
  • length
    Typ: System.Int32
    An Int32 value that specifies the number of characters to read.
  • bufferoffset
    Typ: System.Int32
    An Int32 value that specifies the index from which to start the read operation.
  • fieldoffset
    Typ: System.Int32
    An Int32 value that specifies the index position within the record from which to begin the read operation.

Rückgabewert

Typ: System.Int32
An int32 value that specifies the number of characters returned in the array.

Beispiele

Readme_Tracer

Siehe auch

Verweis

TraceReader Klasse

GetChars-Überladung

Microsoft.SqlServer.Management.Trace-Namespace

Andere Ressourcen

Ablaufverfolgungsflags (Transact-SQL)

Vorlagen und Berechtigungen in SQL Server Profiler