Szerkesztés

Megosztás a következőn keresztül:


BuildProvider.OpenStream Method

Definition

Opens a stream for reading from a virtual path.

Overloads

OpenStream()

Opens a stream for reading the virtual path of the current build provider object.

OpenStream(String)

Opens a stream for reading from a specified virtual path.

OpenStream()

Opens a stream for reading the virtual path of the current build provider object.

protected:
 System::IO::Stream ^ OpenStream();
protected System.IO.Stream OpenStream ();
member this.OpenStream : unit -> System.IO.Stream
Protected Function OpenStream () As Stream

Returns

An open Stream that can be used to read the contents of the VirtualPath.

Remarks

Use the Read method on the returned Stream object to read the contents of the virtual path for the BuildProvider object.

After calling the OpenStream method, you must use the Close method to close the Stream object and free associated system resources.

See also

Applies to

OpenStream(String)

Opens a stream for reading from a specified virtual path.

protected:
 System::IO::Stream ^ OpenStream(System::String ^ virtualPath);
protected System.IO.Stream OpenStream (string virtualPath);
member this.OpenStream : string -> System.IO.Stream
Protected Function OpenStream (virtualPath As String) As Stream

Parameters

virtualPath
String

The virtual path to read.

Returns

An open Stream that can be used to read the contents of the specified virtual path.

Remarks

Use the Read method on the returned Stream object to read the contents of the virtual path.

After calling the OpenStream method, you must use the Close method to close the Stream object and free associated system resources.

See also

Applies to