RestrictedStreamOptions Class

Specifies options for controlling which operations are allowed on a RestrictedStream.

public sealed class RestrictedStreamOptions : IEquatable<RestrictedStreamOptions>
Implements

Constructors

NameDescription
RestrictedStreamOptions()

RestrictedStreamOptions()

public RestrictedStreamOptions()

No documentation is available.

Properties

NameDescription
AllowAsynchronousCallsGets or sets a value indicating whether asynchronous operations are allowed on the stream.
AllowReadingGets or sets a value indicating whether reading operations are allowed on the stream.
AllowSeekingGets or sets a value indicating whether seeking operations are allowed on the stream.
AllowSynchronousCallsGets or sets a value indicating whether synchronous operations are allowed on the stream.
AllowWritingGets or sets a value indicating whether writing operations are allowed on the stream.
MaxReadLengthGets or sets the maximum number of bytes that can be read per read operation. A negative value or 0 means no limit.

AllowAsynchronousCalls

RestrictedStreamOptions.cs

Gets or sets a value indicating whether asynchronous operations are allowed on the stream.

public bool AllowAsynchronousCalls { get; set; }

Property value

bool

Gets or sets a value indicating whether reading operations are allowed on the stream.

public bool AllowReading { get; set; }

Property value

bool

Gets or sets a value indicating whether seeking operations are allowed on the stream.

public bool AllowSeeking { get; set; }

Property value

bool

AllowSynchronousCalls

RestrictedStreamOptions.cs

Gets or sets a value indicating whether synchronous operations are allowed on the stream.

public bool AllowSynchronousCalls { get; set; }

Property value

bool

Gets or sets a value indicating whether writing operations are allowed on the stream.

public bool AllowWriting { get; set; }

Property value

bool

Gets or sets the maximum number of bytes that can be read per read operation. A negative value or 0 means no limit.

public int MaxReadLength { get; set; }

Property value

int

Methods

NameDescription
Equals(RestrictedStreamOptions?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(RestrictedStreamOptions?)

public bool Equals(RestrictedStreamOptions? other)
Parameters
other RestrictedStreamOptions?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(RestrictedStreamOptions?, RestrictedStreamOptions?)
operator !=(RestrictedStreamOptions?, RestrictedStreamOptions?)

operator ==(RestrictedStreamOptions?, RestrictedStreamOptions?)

public static bool operator ==(RestrictedStreamOptions? left, RestrictedStreamOptions? right)

No documentation is available.

operator !=(RestrictedStreamOptions?, RestrictedStreamOptions?)

public static bool operator !=(RestrictedStreamOptions? left, RestrictedStreamOptions? right)

No documentation is available.