DbUpdatableDataRecord.GetChars 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
將欄位值擷取成字元陣列。
命名空間: System.Data.Entity.Core.Objects
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<SuppressMessageAttribute("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes")> _
Public Overrides Function GetChars ( _
i As Integer, _
dataIndex As Long, _
buffer As Char(), _
bufferIndex As Integer, _
length As Integer _
) As Long
'用途
Dim instance As DbUpdatableDataRecord
Dim i As Integer
Dim dataIndex As Long
Dim buffer As Char()
Dim bufferIndex As Integer
Dim length As Integer
Dim returnValue As Long
returnValue = instance.GetChars(i, dataIndex, _
buffer, bufferIndex, length)
[SuppressMessageAttribute("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes")]
public override long GetChars(
int i,
long dataIndex,
char[] buffer,
int bufferIndex,
int length
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2201:DoNotRaiseReservedExceptionTypes")]
public:
virtual long long GetChars(
int i,
long long dataIndex,
array<wchar_t>^ buffer,
int bufferIndex,
int length
) override
[<SuppressMessageAttribute("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes")>]
abstract GetChars :
i:int *
dataIndex:int64 *
buffer:char[] *
bufferIndex:int *
length:int -> int64
[<SuppressMessageAttribute("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes")>]
override GetChars :
i:int *
dataIndex:int64 *
buffer:char[] *
bufferIndex:int *
length:int -> int64
public override function GetChars(
i : int,
dataIndex : long,
buffer : char[],
bufferIndex : int,
length : int
) : long
參數
- i
類型:System.Int32
欄位的序數。
- dataIndex
類型:System.Int64
要開始複製資料的索引。
- buffer
類型:System.Char[]
要將資料複製到其中的目的端緩衝區。
- bufferIndex
類型:System.Int32
目的端緩衝區中開始複製的索引。
- length
類型:System.Int32
要複製的字元數。
傳回值
類型:System.Int64
複製的字元數目。
Implements
IDataRecord.GetChars(Int32, Int64, Char[], Int32, Int32)