Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets a value that indicates whether the NetworkStream supports reading.
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property CanRead As Boolean
public override bool CanRead { get; }
public:
virtual property bool CanRead {
bool get () override;
}
abstract CanRead : bool with get
override CanRead : bool with get
override function get CanRead () : boolean
Property Value
Type: System. . :: . .Boolean
true if data can be read from the stream; otherwise, false. The default value is true.
Remarks
If CanRead is true, NetworkStream allows calls to the Read method. Provide the appropriate FileAccess enumerated value in the constructor to set the readability and writability of the NetworkStream. The CanRead property is set when the NetworkStream is initialized.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.