DiscoveryDocument.CanRead メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DiscoveryDocument.CanRead メソッドの意味・解説 

DiscoveryDocument.CanRead メソッド

渡されXmlReaderDiscoveryDocument に逆シリアル化できるかどうかを示す値を返します

名前空間: System.Web.Services.Discovery
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

使用例使用例

CanRead プロパティtrue場合の、探索ドキュメント内容読み込むコード例次に示します

' Check whether the given XmlTextReader is readable.
If DiscoveryDocument.CanRead(myXmlTextReader) = True
 Then
   ' Read the given XmlTextReader.
   myDiscoveryDocument = DiscoveryDocument.Read(myXmlTextReader)
Else
   Console.WriteLine("The supplied file is not readable")
End If
// Check whether the given XmlTextReader is readable.
if( DiscoveryDocument.CanRead( myXmlTextReader ) == true
 )
{
   // Read the given XmlTextReader.
   myDiscoveryDocument = DiscoveryDocument.Read( myXmlTextReader );
}
else
{
   Console.WriteLine( "The supplied file is not readable" );
}
// Check whether the given XmlTextReader is readable.
if ( DiscoveryDocument::CanRead( myXmlTextReader ) == true
 )
      
// Read the given XmlTextReader.
myDiscoveryDocument = DiscoveryDocument::Read( myXmlTextReader );
else
      Console::WriteLine( "The supplied file is not readable" );

// Check whether the given XmlTextReader is readable.
if (DiscoveryDocument.CanRead(myXmlTextReader) == true)
 {
    // Read the given XmlTextReader.
    myDiscoveryDocument = DiscoveryDocument.Read(myXmlTextReader);
}
else {
    Console.WriteLine("The supplied file is not readable");
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryDocument クラス
DiscoveryDocument メンバ
System.Web.Services.Discovery 名前空間
XmlReader



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

辞書ショートカット

すべての辞書の索引

DiscoveryDocument.CanRead メソッドのお隣キーワード
検索ランキング

   

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



DiscoveryDocument.CanRead メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS