OracleLob OracleLob OracleLob OracleLob Class

定義

表示儲存在 Oracle 伺服器的大型二進位物件 (LOB) 資料型別。Represents a large object binary (LOB) data type stored on an Oracle server. 這個類別無法被繼承。This class cannot be inherited.

public ref class OracleLob sealed : System::IO::Stream, ICloneable, System::Data::SqlTypes::INullable
public sealed class OracleLob : System.IO.Stream, ICloneable, System.Data.SqlTypes.INullable
type OracleLob = class
    inherit Stream
    interface ICloneable
    interface IDisposable
    interface INullable
Public NotInheritable Class OracleLob
Inherits Stream
Implements ICloneable, INullable
繼承
實作

備註

OracleLob不同於OracleBFile,因為資料會儲存在的伺服器,而不是在作業系統中的實體檔案。An OracleLob differs from an OracleBFile in that the data is stored on the server instead of in a physical file in the operating system. 它也可以是讀寫物件,不像OracleBFile,一律為唯讀。It can also be a read-write object, unlike an OracleBFile, which is always read-only.

OracleLob可能是其中一種OracleType資料型別。An OracleLob may be one of these OracleType data types.

OracleType 資料類型OracleType data type 說明Description
Blob OracleBLOB包含二進位資料,其大小上限為 4 gb 的資料型別。An Oracle BLOB data type that contains binary data with a maximum size of 4 gigabytes (GB). 這會對應至型別 ArrayByteThis maps to an Array of type Byte.
Clob OracleCLOB包含字元資料,預設的字元為基礎的資料型別設定在伺服器上,大小上限為 4 GB。An Oracle CLOB data type that contains character data, based on the default character set on the server, with a maximum size of 4 GB. 這對應至 StringThis maps to String.
NClob OracleNCLOB包含字元資料的資料類型會根據最大值 4 GB 的伺服器上的國家字元集。An Oracle NCLOB data type that contains character data, based on the national character set on the server with a maximum size of 4 GB. 這對應至 StringThis maps to String.

.NET 應用程式開發人員可以擷取 OracleLOB值為基本的.NET 資料類型,例如Array型別的ByteString,或特殊OracleLob資料型別。A .NET application developer can retrieve the Oracle LOB values into basic .NET data types, such as Array of type Byte and String, or the specialized OracleLob data type. OracleLob類別支援讀取的資料和寫入到 Oracle LOB Oracle 資料庫中。The OracleLob class supports reading data from and writing to the Oracle LOB in the Oracle database.

以下是主要特性OracleLob區別基本的.NET 資料類型的資料類型:The following are the main characteristics of an OracleLob data type that distinguish it from basic .NET data types:

  • 擷取 Oracle 之後LOB值從 Oracle 資料庫OracleLob類別,您可以變更LOB開啟的交易和您的變更中的資料會直接反映到資料庫。After you retrieve the Oracle LOB value from the Oracle database into the OracleLob class, you can change the LOB data in an open transaction and your changes are directly reflected to the database. 如果您擷取 OracleLOB值貼Array型別的ByteString並更新這些陣列中,您的變更不會反映到資料庫。If you retrieve the Oracle LOB value into an Array of type Byte or String and update these arrays, your changes are not reflected to the database.

  • 當您使用OracleLob類別來存取的區塊LOB值,只有該區塊會傳遞從 Oracle 資料庫給用戶端。When you use the OracleLob class to access a chunk of a LOB value, only that chunk is passed from the Oracle database to the client. 當您使用GetChars方法來存取的區塊LOB值,此值的整個內容會從 Oracle 資料庫給用戶端。When you use the GetChars method to access a chunk of a LOB value, the entire contents of the value are passed from the Oracle database to the client.

若要取得OracleLob物件,請呼叫GetOracleLob方法。To obtain an OracleLob object, call the GetOracleLob method.

您可以建構OracleLob這是 NULL,使用下列格式:You can construct an OracleLob that is NULL using this format:

OracleLob myLob = OracleLob.Null;  

這項技術主要用來測試是否LOB從伺服器傳回是 NULL,如這個範例所示:This technique is used primarily to test whether a LOB returned from the server is NULL, as this example illustrates:

If(myLob == OracleLob.Null)  

NULLLOB運作方式類似零位元組LOB在於Read成功,而且一律會傳回零個位元組。A NULL LOB behaves similarly to a zero-byte LOB in that Read succeeds and always returns zero bytes.

選取LOB包含 null 值的資料行會傳回NullSelecting a LOB column that contains a null value returns Null.

您必須開始交易,才能取得暫存LOBYou must begin a transaction before obtaining a temporary LOB. 否則,OracleDataReader稍後取得資料可能會失敗。Otherwise, the OracleDataReader may fail to obtain data later.

您也可以開啟暫存LOB中藉由呼叫 DBMS_LOB Oracle。CREATETEMPORARY 系統預存程序和繫結LOB輸出參數。You can also open a temporary LOB in Oracle by calling the DBMS_LOB.CREATETEMPORARY system stored procedure and binding a LOB output parameter. 在用戶端,而暫存LOB行為類似以資料表為基礎LOBOn the client side, a temporary LOB behaves like a table-based LOB. 例如,若要更新暫存LOB,就必須括在交易。For example, to update the temporary LOB, it must be enclosed in a transaction.

下列 C# 範例示範如何開啟暫存LOBThe following C# example demonstrates how to open a temporary LOB.

OracleConnection connection = new OracleConnection("server=MyServer; integrated security=yes;");  
connection.Open();  
OracleTransaction transaction = connection.BeginTransaction();  
OracleCommand command = connection.CreateCommand();  
command.Transaction = transaction;  
command.CommandText = "declare xx blob; begin dbms_lob.createtemporary(xx, false, 0); :tempblob := xx; end;";  
command.Parameters.Add(new OracleParameter("tempblob", OracleType.Blob)).Direction = ParameterDirection.Output;  
command.ExecuteNonQuery();  
OracleLob tempLob = (OracleLob)command.Parameters[0].Value;  
byte[] tempbuff = new byte[10000];  
tempLob.BeginBatch(OracleLobOpenMode.ReadWrite);  
tempLob.Write(tempbuff,0,tempbuff.Length);  
tempLob.EndBatch();  
command.Parameters.Clear();  
command.CommandText = "MyTable.MyProc";  
command.CommandType = CommandType.StoredProcedure;    
command.Parameters.Add(new OracleParameter("ImportDoc", OracleType.Blob)).Value = tempLob;  
command.ExecuteNonQuery();  
transaction.Commit();  
connection.Close  

注意

繼承WriteByte方法會失敗,如果搭配字元資料和InvalidOperationException就會擲回。The inherited WriteByte method fails if used with character data, and an InvalidOperationException is thrown. 請改用 Write 方法。Use the Write method instead.

暫存LOB是否只關閉連線時關閉,但共用,並在負載之下,暫存LOBs,請勿關閉。Temporary LOBs are only closed when the connection is closed, but with pooling and under load, temporary LOBs do not close. 這可以透過處置暫存解決LOB,藉由叫用tempLob.Dispose()This can be resolved by disposing the temporary LOB, by invoking tempLob.Dispose().

欄位

Null Null Null Null

表示 Null OracleLob 物件。Represents a null OracleLob object.

屬性

CanRead CanRead CanRead CanRead

取得值,表示 LOB 資料流是否可讀取。Gets a value indicating whether the LOB stream can be read.

CanSeek CanSeek CanSeek CanSeek

取得值,表示是否可以執行向前及向後搜尋的作業。Gets a value indicating whether forward and backward seek operations can be performed.

CanTimeout CanTimeout CanTimeout CanTimeout

取得值,該值判斷目前的資料流是否可以逾時。Gets a value that determines whether the current stream can time out.

(Inherited from Stream)
CanWrite CanWrite CanWrite CanWrite

不論 LOB 是否支援寫入,永遠傳回 true。Always returns true, regardless of whether the LOB supports writing or not.

ChunkSize ChunkSize ChunkSize ChunkSize

取得值,指出讀取/寫入作業期間從伺服器擷取或傳送到伺服器的最小位元組數。Gets a value indicating the minimum number of bytes to retrieve from or send to the server during a read/write operation.

Connection Connection Connection Connection

取得 OracleConnection 的這個執行個體所使用的 OracleLobGets the OracleConnection used by this instance of the OracleLob.

IsBatched IsBatched IsBatched IsBatched

取得值,指出應用程式是否已呼叫 BeginBatch() 方法。Gets a value indicating whether an application called the BeginBatch() method.

IsNull IsNull IsNull IsNull

取得值,指出 OracleLob 是否為 Null 資料流。Gets a value that indicates whether the OracleLob is a Null stream.

IsTemporary IsTemporary IsTemporary IsTemporary

取得值,指出 OracleLob 是否為暫時 LOBGets a value indicating whether the OracleLob is a temporary LOB.

Length Length Length Length

取得傳回 OracleLob 大小的值。Gets a value that returns the size of the OracleLob.

LobType LobType LobType LobType

取得傳回 LOB 資料型別的值。Gets a value that returns the LOB data type.

Position Position Position Position

取得 OracleLob 資料流中目前的讀取位置。Gets the current read position in the OracleLob stream.

ReadTimeout ReadTimeout ReadTimeout ReadTimeout

取得或設定值 (以毫秒為單位),這個值決定在逾時前資料流將嘗試讀取多長時間。Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.

(Inherited from Stream)
Value Value Value Value

取得與基礎值對等的 Common Language Runtime 資料流值。Gets the common language runtime stream value equivalent of the underlying value.

WriteTimeout WriteTimeout WriteTimeout WriteTimeout

取得或設定值 (以毫秒為單位),這個值決定在逾時前資料流將嘗試寫入多長時間。Gets or sets a value, in milliseconds, that determines how long the stream will attempt to write before timing out.

(Inherited from Stream)

方法

Append(OracleLob) Append(OracleLob) Append(OracleLob) Append(OracleLob)

將指定 LOB 的資料附加到目前的 LOBAppends data from the specified LOB to the current LOB.

BeginBatch() BeginBatch() BeginBatch() BeginBatch()

防止在執行多重讀取作業時引發伺服器端觸發程序。Prevents server-side triggers from firing while performing multiple read operations.

BeginBatch(OracleLobOpenMode) BeginBatch(OracleLobOpenMode) BeginBatch(OracleLobOpenMode) BeginBatch(OracleLobOpenMode)

以指定的存取模式執行多重讀取和寫入作業時,防止引發伺服器端觸發程序。Prevents server-side triggers from firing while performing multiple read and write operations in the specified access mode.

BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)

開始非同步的讀取作業。Begins an asynchronous read operation. (請考慮用 ReadAsync(Byte[], Int32, Int32) 替代。)(Consider using ReadAsync(Byte[], Int32, Int32) instead.)

(Inherited from Stream)
BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)

開始非同步的寫入作業。Begins an asynchronous write operation. (請考慮用 WriteAsync(Byte[], Int32, Int32) 替代。)(Consider using WriteAsync(Byte[], Int32, Int32) instead.)

(Inherited from Stream)
Clone() Clone() Clone() Clone()

建立新的 OracleLob 物件,將相同的 Oracle LOB 參考為原始 OracleLob 物件。Creates a new OracleLob object that references the same Oracle LOB as the original OracleLob object.

Close() Close() Close() Close()

關閉目前的資料流,並釋放與資料流相關聯的資源。Closes the current stream and releases resources that are associated with the stream.

CopyTo(Int64, OracleLob, Int64, Int64) CopyTo(Int64, OracleLob, Int64, Int64) CopyTo(Int64, OracleLob, Int64, Int64) CopyTo(Int64, OracleLob, Int64, Int64)

以指定的資料量和來源位移,從這個 OracleLob 複製到目的 OracleLobCopies from this OracleLob to a destination OracleLob with the specified amount of data, and the source offset.

CopyTo(OracleLob) CopyTo(OracleLob) CopyTo(OracleLob) CopyTo(OracleLob)

從這個 OracleLob 複製到目的 OracleLobCopies from this OracleLob to a destination OracleLob.

CopyTo(OracleLob, Int64) CopyTo(OracleLob, Int64) CopyTo(OracleLob, Int64) CopyTo(OracleLob, Int64)

以指定的資料量,從這個 OracleLob 複製到目的 OracleLobCopies from this OracleLob to a destination OracleLob with the specified amount of data.

CopyTo(Stream) CopyTo(Stream) CopyTo(Stream) CopyTo(Stream)

從目前資料流讀取位元組,並將其寫入另一個資料流中。Reads the bytes from the current stream and writes them to another stream.

(Inherited from Stream)
CopyTo(Stream, Int32) CopyTo(Stream, Int32) CopyTo(Stream, Int32) CopyTo(Stream, Int32)

使用指定的緩衝區大小,從目前資料流讀取所有位元組,並將其寫入另一個資料流中。Reads the bytes from the current stream and writes them to another stream, using a specified buffer size.

(Inherited from Stream)
CopyToAsync(Stream) CopyToAsync(Stream) CopyToAsync(Stream) CopyToAsync(Stream)

以非同步的方式從目前資料流讀取所有位元組,並將其寫入另一個資料流中。Asynchronously reads the bytes from the current stream and writes them to another stream.

(Inherited from Stream)
CopyToAsync(Stream, CancellationToken) CopyToAsync(Stream, CancellationToken) CopyToAsync(Stream, CancellationToken) CopyToAsync(Stream, CancellationToken)

使用指定的取消權杖,以非同步的方式從目前資料流讀取位元組,並將其寫入另一個資料流。Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified cancellation token.

(Inherited from Stream)
CopyToAsync(Stream, Int32) CopyToAsync(Stream, Int32) CopyToAsync(Stream, Int32) CopyToAsync(Stream, Int32)

使用指定的緩衝區大小,以非同步的方式從目前資料流讀取所有位元組,並將其寫入另一個資料流中。Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size.

(Inherited from Stream)
CopyToAsync(Stream, Int32, CancellationToken) CopyToAsync(Stream, Int32, CancellationToken) CopyToAsync(Stream, Int32, CancellationToken) CopyToAsync(Stream, Int32, CancellationToken)

使用指定的緩衝區大小和取消語彙基元,以非同步的方式從目前資料流讀取位元組,並將其寫入另一個資料流。Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token.

(Inherited from Stream)
CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
CreateWaitHandle() CreateWaitHandle() CreateWaitHandle() CreateWaitHandle()

配置 WaitHandle 物件。Allocates a WaitHandle object.

(Inherited from Stream)
Dispose() Dispose() Dispose() Dispose()

釋放此物件所使用的資源。Releases the resources that are used by this object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放 Stream 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the Stream and optionally releases the managed resources.

(Inherited from Stream)
DisposeAsync() DisposeAsync() DisposeAsync() DisposeAsync()

以非同步方式釋放 Stream 使用的不受控資源。Asynchronously releases the unmanaged resources used by the Stream.

(Inherited from Stream)
EndBatch() EndBatch() EndBatch() EndBatch()

允許伺服器端觸發程序在執行多重寫入作業之後繼續引發。Allows server-side triggers to resume firing after performing multiple write operations.

EndRead(IAsyncResult) EndRead(IAsyncResult) EndRead(IAsyncResult) EndRead(IAsyncResult)

等候暫止的非同步讀取完成。Waits for the pending asynchronous read to complete. (請考慮用 ReadAsync(Byte[], Int32, Int32) 替代。)(Consider using ReadAsync(Byte[], Int32, Int32) instead.)

(Inherited from Stream)
EndWrite(IAsyncResult) EndWrite(IAsyncResult) EndWrite(IAsyncResult) EndWrite(IAsyncResult)

結束非同步的寫入作業。Ends an asynchronous write operation. (請考慮用 WriteAsync(Byte[], Int32, Int32) 替代。)(Consider using WriteAsync(Byte[], Int32, Int32) instead.)

(Inherited from Stream)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Erase() Erase() Erase() Erase()

從這個 OracleLob 清除所有資料。Erases all data from this OracleLob.

Erase(Int64, Int64) Erase(Int64, Int64) Erase(Int64, Int64) Erase(Int64, Int64)

從這個 OracleLob 清除指定的資料量。Erases the specified amount of data from this OracleLob.

Flush() Flush() Flush() Flush()

目前不支援。Not currently supported.

FlushAsync() FlushAsync() FlushAsync() FlushAsync()

以非同步的方式清除這個資料流的所有緩衝區,並造成所有緩衝資料都寫入基礎裝置。Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device.

(Inherited from Stream)
FlushAsync(CancellationToken) FlushAsync(CancellationToken) FlushAsync(CancellationToken) FlushAsync(CancellationToken)

以非同步的方式清除這個資料流的所有緩衝區,造成所有緩衝資料都寫入基礎裝置,並且監視取消要求。Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.

(Inherited from Stream)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

取得存留期服務物件,以控制這個執行個體的存留期原則。Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

建立目前 MarshalByRefObject 物件的淺層複本。Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
ObjectInvariant() ObjectInvariant() ObjectInvariant() ObjectInvariant()

提供 Contract 的支援。Provides support for a Contract.

(Inherited from Stream)
Read(Byte[], Int32, Int32) Read(Byte[], Int32, Int32) Read(Byte[], Int32, Int32) Read(Byte[], Int32, Int32)

自目前 OracleLob 讀取一位元組序列,並依所讀取的位元組數目進階資料流裡的位置。Reads a sequence of bytes from the current OracleLob stream and advances the position within the stream by the number of bytes read.

Read(Span<Byte>) Read(Span<Byte>) Read(Span<Byte>) Read(Span<Byte>)

當在衍生類別中覆寫時,自目前資料流讀取一連串的位元組,並依所讀取的位元組數目進階資料流中的位置。When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

(Inherited from Stream)
ReadAsync(Byte[], Int32, Int32) ReadAsync(Byte[], Int32, Int32) ReadAsync(Byte[], Int32, Int32) ReadAsync(Byte[], Int32, Int32)

以非同步的方式從目前的資料流讀取位元組序列,並依讀取的位元組數將資料流中的位置往前移。Asynchronously reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

(Inherited from Stream)
ReadAsync(Byte[], Int32, Int32, CancellationToken) ReadAsync(Byte[], Int32, Int32, CancellationToken) ReadAsync(Byte[], Int32, Int32, CancellationToken) ReadAsync(Byte[], Int32, Int32, CancellationToken)

以非同步的方式從目前資料流讀取一連串的位元組、依所讀取的位元組數目進階資料流中的位置,以及監視取消要求。Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.

(Inherited from Stream)
ReadAsync(Memory<Byte>, CancellationToken) ReadAsync(Memory<Byte>, CancellationToken) ReadAsync(Memory<Byte>, CancellationToken) ReadAsync(Memory<Byte>, CancellationToken)

以非同步的方式從目前資料流讀取一連串的位元組、依所讀取的位元組數目進階資料流中的位置,以及監視取消要求。Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.

(Inherited from Stream)
ReadByte() ReadByte() ReadByte() ReadByte()

從資料流讀取一個位元組,並將資料流的位置推進一個位元組;如果在資料流末端,則傳回 -1。Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

(Inherited from Stream)
Seek(Int64, SeekOrigin) Seek(Int64, SeekOrigin) Seek(Int64, SeekOrigin) Seek(Int64, SeekOrigin)

設定目前 OracleLob 資料流上的位置。Sets the position on the current OracleLob stream.

SetLength(Int64) SetLength(Int64) SetLength(Int64) SetLength(Int64)

OracleLob 資料流的長度設定為小於目前長度的值。Sets the length of the OracleLob stream to a value less than the current length.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
Write(Byte[], Int32, Int32) Write(Byte[], Int32, Int32) Write(Byte[], Int32, Int32) Write(Byte[], Int32, Int32)

寫入一位元組序列至目前的 OracleLob,並依所寫入的位元組數目進階這個資料流裡的目前位置。Writes a sequence of bytes to the current OracleLob stream, and advances the current position within this stream by the number of bytes written.

Write(ReadOnlySpan<Byte>) Write(ReadOnlySpan<Byte>) Write(ReadOnlySpan<Byte>) Write(ReadOnlySpan<Byte>)

在衍生類別中覆寫時,將一連串的位元組寫入目前的資料流,並且由這個資料流中目前的位置前移寫入的位元組數目。When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

(Inherited from Stream)
WriteAsync(Byte[], Int32, Int32) WriteAsync(Byte[], Int32, Int32) WriteAsync(Byte[], Int32, Int32) WriteAsync(Byte[], Int32, Int32)

以非同步的方式將位元組序列寫入至目前的資料流,並依寫入的位元組數將資料流中目前的位置往前移。Asynchronously writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

(Inherited from Stream)
WriteAsync(Byte[], Int32, Int32, CancellationToken) WriteAsync(Byte[], Int32, Int32, CancellationToken) WriteAsync(Byte[], Int32, Int32, CancellationToken) WriteAsync(Byte[], Int32, Int32, CancellationToken)

以非同步的方式將一連串的位元組寫入目前的資料流,由這個資料流中目前的位置前移寫入的位元組數目,並且監視取消要求。Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.

(Inherited from Stream)
WriteAsync(ReadOnlyMemory<Byte>, CancellationToken) WriteAsync(ReadOnlyMemory<Byte>, CancellationToken) WriteAsync(ReadOnlyMemory<Byte>, CancellationToken) WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)

以非同步的方式將一連串的位元組寫入目前的資料流,由這個資料流中目前的位置前移寫入的位元組數目,並且監視取消要求。Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.

(Inherited from Stream)
WriteByte(Byte) WriteByte(Byte) WriteByte(Byte) WriteByte(Byte)

寫入一個位元組至 OracleLob 資料流的目前位置,並將資料流位置推進一個位元組。Writes a byte to the current position in the OracleLob stream, and advances the position within the stream by one byte.

明確介面實作

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

釋放 Stream 所使用的所有資源。Releases all resources used by the Stream.

(Inherited from Stream)

適用於