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!

CryptoFileStream Constructor (String, FileMode, FileAccess, FileShare, Int32)

Create a new instance of cryptographic file stream.

[Visual Basic]
Overloads Public Sub New( _
   ByVal path As String, _
   ByVal mode As FileMode, _
   ByVal access As FileAccess, _
   ByVal share As FileShare, _
   ByVal bufferSize As Integer _
)
[C#]
public CryptoFileStream(
   string path,
   FileMode mode,
   FileAccess access,
   FileShare share,
   int bufferSize
);
[C++]
public: CryptoFileStream(
   String* path,
   FileMode mode,
   FileAccess access,
   FileShare share,
   int bufferSize
);
[JScript]
public function CryptoFileStream(
   path : String,
   mode : FileMode,
   access : FileAccess,
   share : FileShare,
   bufferSize : int
);

Parameters

path
file pathname
mode
[To be supplied.]
access
[To be supplied.]
share
[To be supplied.]
bufferSize
[To be supplied.]

Remarks

A new file stream object is created and used as a cryptographic stream object.

Requirements

NGWS Runtime Security:

FileIOPermission access to file required

See Also

CryptoFileStream Class | CryptoFileStream Members | System.Security.Cryptography Namespace | CryptoFileStream Constructor Overload List