DiscoveryDocument.CanRead メソッド
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim xmlReader As XmlReader Dim returnValue As Boolean returnValue = DiscoveryDocument.CanRead(xmlReader)
戻り値
XmlReader を DiscoveryDocument に逆シリアル化できる場合は true。それ以外の場合は false。

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" ); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- DiscoveryDocument.CanRead メソッドのページへのリンク