NegotiateStream.CanWrite プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > NegotiateStream.CanWrite プロパティの意味・解説 

NegotiateStream.CanWrite プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

基になるストリーム書き込み可能かどうかを示す Boolean 値を取得します

名前空間: System.Net.Security
アセンブリ: System (system.dll 内)
構文構文

解説解説

認証成功した場合、このプロパティは基になるストリームの CanWrite プロパティ呼び出すことによって返される値を返します。基になるストリームは、NegotiateStream クラスインスタンス作成時に指定されます。

使用例使用例

このプロパティの値を表示するコード例次に示します

 static void DisplayStreamProperties(NegotiateStream
 stream)
{
     Console.WriteLine("Can read: {0}", stream.CanRead);
     Console.WriteLine("Can write: {0}", stream.CanWrite);
     Console.WriteLine("Can seek: {0}", stream.CanSeek);
     try 
     {
         // If the underlying stream supports it, display the length.
         Console.WriteLine("Length: {0}", stream.Length);
     } catch (NotSupportedException)
     {
             Console.WriteLine("Cannot get the length of
 the underlying stream.");
     }
     
     if (stream.CanTimeout)
     {
         Console.WriteLine("Read time-out: {0}", stream.ReadTimeout);
         Console.WriteLine("Write time-out: {0}", stream.WriteTimeout);
     }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NegotiateStream クラス
NegotiateStream メンバ
System.Net.Security 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からNegotiateStream.CanWrite プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からNegotiateStream.CanWrite プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からNegotiateStream.CanWrite プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

NegotiateStream.CanWrite プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



NegotiateStream.CanWrite プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS