Aracılığıyla paylaş


DataPart.GetStream Method

Definition

Overloads

GetStream()

Returns the content data stream of the current part.

GetStream(FileMode)

Returns the content stream that was opened using a specified I/O FileMode.

GetStream(FileMode, FileAccess)

Returns the content stream of the part that was opened by using a specified FileMode and FileAccess.

GetStream()

Returns the content data stream of the current part.

public System.IO.Stream GetStream ();
member this.GetStream : unit -> System.IO.Stream
Public Function GetStream () As Stream

Returns

The content data stream of the current part.

Applies to

GetStream(FileMode)

Returns the content stream that was opened using a specified I/O FileMode.

public System.IO.Stream GetStream (System.IO.FileMode mode);
member this.GetStream : System.IO.FileMode -> System.IO.Stream
Public Function GetStream (mode As FileMode) As Stream

Parameters

mode
FileMode

The I/O mode to be used to open the content stream.

Returns

The content stream of the part.

Applies to

GetStream(FileMode, FileAccess)

Returns the content stream of the part that was opened by using a specified FileMode and FileAccess.

public System.IO.Stream GetStream (System.IO.FileMode mode, System.IO.FileAccess access);
member this.GetStream : System.IO.FileMode * System.IO.FileAccess -> System.IO.Stream
Public Function GetStream (mode As FileMode, access As FileAccess) As Stream

Parameters

mode
FileMode

The I/O mode to be used to open the content stream.

access
FileAccess

The access permissions to be used to open the content stream.

Returns

The content stream of the part.

Applies to