NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

File.OpenWrite (String)

Creates a read-write Stream on the specified path.

[Visual Basic]
Overloads Public Shared Function OpenWrite( _
   ByVal path As String _
) As Stream
[C#]
public static Stream OpenWrite(
   string path
);
[C++]
public: static Stream* OpenWrite(
   String* path
);
[JScript]
public static function OpenWrite(
   path : String
) : Stream;

Parameters

path
The path of the new read-write Stream.

Return Value

A reference to a new read-write, unshared Stream object on the specified path.

Exceptions

Exception Type Condition
SecurityException The caller does not have the required permission.
ArgumentException path is empty or contains only whitespaces.

Requirements

NGWS Runtime Security:

FileIOPermissionAccess Write permission to the path.

See Also

File Class | File Members | System.IO Namespace | File.OpenWrite Overload List