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

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

IsolatedStorageFileStream.CanRead プロパティ

ファイル読み取ることができるかどうかを示す Boolean 値を取得します

名前空間: System.IO.IsolatedStorage
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Dim instance As IsolatedStorageFileStream
Dim value As Boolean

value = instance.CanRead
public override bool CanRead { get;
 }
/** @property */
public boolean get_CanRead ()

プロパティ
IsolatedStorageFileStream オブジェクト読み取ることができる場合trueそれ以外場合false

解説解説

このプロパティ使用してIsolatedStorageFileStream オブジェクト読み取ることができるかどうか確認します

使用例使用例

CanRead プロパティ使用してRead メソッドまたは BeginRead メソッド呼び出す前にストリーム読み取り可能かどうか確認する方法を、次のコード例示します。この例のコンテキスト全体については、IsolatedStorageFileStream概要参照してください

' Open or create a writable file.
Dim target As New IsolatedStorageFileStream("Archive\
 " & Me.userName, _
     FileMode.OpenOrCreate, FileAccess.Write, FileShare.Write, isoFile)
IsolatedStorageFileStream source =
    new IsolatedStorageFileStream(this.userName,
 FileMode.OpenOrCreate,
    isoFile);
// This is the stream from which data will be read.
Console.WriteLine("Is the source file readable? " + (source.CanRead ? "true"
 : "false"));
Console.WriteLine("Creating new IsolatedStorageFileStream
 for Archive.");

// Open or create a writable file.
IsolatedStorageFileStream target =
    new IsolatedStorageFileStream("Archive\\ " + this.userName
,
    FileMode.OpenOrCreate,
    FileAccess.Write,
    FileShare.Write,
    isoFile);
// This is the stream to which data will be written.
IsolatedStorageFileStream^ source = gcnew IsolatedStorageFileStream( this->userName,FileMode::OpenOrCreate,isoFile
 );

// This is the stream from which data will be read.
Console::WriteLine( "Is the source file readable?  {0}", (source->CanRead
 ? (String^)"true" : "false")
 );
Console::WriteLine( "Creating new IsolatedStorageFileStream
 for Archive." );

// Open or create a writable file.
IsolatedStorageFileStream^ target = gcnew IsolatedStorageFileStream( String::Concat("Archive\\",this->userName),FileMode::OpenOrCreate,FileAccess::Write,FileShare::Write,isoFile
 );

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IsolatedStorageFileStream クラス
IsolatedStorageFileStream メンバ
System.IO.IsolatedStorage 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS