OpenStreamForWrite Method (String, String, Object, Boolean)
Collapse the table of content
Expand the table of content

IInternalConfigHost.OpenStreamForWrite Method (String, String, Object, Boolean)

 

Opens a Stream object for writing to a configuration file. Allows a Stream object to be designated as a template for copying file attributes.

Namespace:   System.Configuration.Internal
Assembly:  System.Configuration (in System.Configuration.dll)

Stream OpenStreamForWrite(
	string streamName,
	string templateStreamName,
	ref object writeContext,
	bool assertPermissions
)

Parameters

streamName
Type: System.String

A string representing the name of the Stream object performing I/O tasks on the configuration file.

templateStreamName
Type: System.String

The name of a Stream from which file attributes are to be copied as a template.

writeContext
Type: System.Object

The write context of the Stream object performing I/O tasks on the configuration file.

assertPermissions
Type: System.Boolean

true to assert permissions; otherwise, false.

Return Value

Type: System.IO.Stream

Returns the Stream object specified by streamName.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft