Click or drag to resize

FileStreamExensions.SafeSetPos Method

X#
Sets the location of a stream. Contains TRY CATCH mechanism. .

Namespace:  XSharp
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 STATIC METHOD SafeSetPos(
	SELF oStream AS FileStream,
	offset AS INT64
) AS LOGIC
Request Example View Source

Parameters

oStream
Type: FileStream
The stream to write to.
offset
Type: Int64

Return Value

Type: Logic
TRUE when succesfull, FALSE when an exception occurred or when a parameter was incorrect.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FileStream. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also