DiscoveryDocumentReferenceとは? わかりやすく解説

DiscoveryDocumentReference クラス

探索ドキュメントへの参照表します。このクラス継承できません。

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

Public NotInheritable Class
 DiscoveryDocumentReference
    Inherits DiscoveryReference
Dim instance As DiscoveryDocumentReference
public sealed class DiscoveryDocumentReference
 : DiscoveryReference
public ref class DiscoveryDocumentReference
 sealed : public DiscoveryReference
public final class DiscoveryDocumentReference
 extends DiscoveryReference
public final class DiscoveryDocumentReference
 extends DiscoveryReference
解説解説
使用例使用例
Imports System
Imports System.Xml
Imports System.Web.Services.Discovery
Imports System.IO
Imports System.Collections
Imports MicroSoft.VisualBasic

Public Class DiscoveryDocumentReference_ctor_WriteDocument

    Public Shared Sub Main()
        Try
            Dim myDiscoveryDocument As DiscoveryDocument
            Dim myXmlTextReader As _
                 New XmlTextReader("http://localhost/Sample_vb.vsdisco")
            myDiscoveryDocument = DiscoveryDocument.Read(myXmlTextReader)

            ' Create a new instance of DiscoveryDocumentReference.
            Dim myDiscoveryDocumentReference As
 _
                New DiscoveryDocumentReference()
            Dim myFileStream As New
 FileStream("Temp.vsdisco", _
                 FileMode.OpenOrCreate, FileAccess.Write)
            myDiscoveryDocumentReference.WriteDocument( _
                 myDiscoveryDocument, myFileStream)
            myFileStream.Close()

            Dim myFileStream1 As New
 FileStream("Temp.vsdisco", _
                FileMode.OpenOrCreate, FileAccess.Read)
            Dim myStreamReader As New
 StreamReader(myFileStream1)

            ' Initialize the file pointer.
            myStreamReader.BaseStream.Seek(0, SeekOrigin.Begin)
            Console.WriteLine("The contents of the discovery document
 are: " _
                & ControlChars.NewLine)
            While myStreamReader.Peek() > - 1
                ' Display the contents of the discovery document.
                Console.WriteLine(myStreamReader.ReadLine())
            End While
            myStreamReader.Close()
        Catch e As Exception
            Console.WriteLine("Exception: {0}", e.Message.ToString())
        End Try
    End Sub 'Main
End Class 'DiscoveryDocumentReference_ctor_WriteDocument
using System;
using System.Xml;
using System.Web.Services.Discovery;
using System.IO;
using System.Collections;

public class DiscoveryDocumentReference_ctor_WriteDocument
{
    public static void Main()
    {
        try
        {
            DiscoveryDocument myDiscoveryDocument;
            XmlTextReader myXmlTextReader = 
                new XmlTextReader("http://localhost/Sample_cs.vsdisco");
            myDiscoveryDocument = DiscoveryDocument.Read(myXmlTextReader);

            // Create a new instance of DiscoveryDocumentReference.
            DiscoveryDocumentReference myDiscoveryDocumentReference = 
                new DiscoveryDocumentReference();
            FileStream myFileStream = new FileStream("Temp.vsdisco"
,
 
                FileMode.OpenOrCreate, FileAccess.Write);
            myDiscoveryDocumentReference.WriteDocument(
                myDiscoveryDocument, myFileStream);
            myFileStream.Close();

            FileStream myFileStream1 = new FileStream("Temp.vsdisco"
,
 
                FileMode.OpenOrCreate, FileAccess.Read);
            StreamReader myStreamReader = new StreamReader(myFileStream1);

            // Initialize the file pointer.
            myStreamReader.BaseStream.Seek(0, SeekOrigin.Begin);
            Console.WriteLine("The contents of the discovery document are: \n");
            while(myStreamReader.Peek() > -1)
            {
                // Display the contents of the discovery document.
                Console.WriteLine(myStreamReader.ReadLine());
            }
            myStreamReader.Close();
        }
        catch(Exception e)
        {
            Console.WriteLine("Exception: {0}", e.Message);
        }
    }
}
#using <System.Web.Services.dll>
#using <System.Xml.dll>

using namespace System;
using namespace System::Xml;
using namespace System::Web::Services::Discovery;
using namespace System::IO;
using namespace System::Collections;
int main()
{
   try
   {
      DiscoveryDocument^ myDiscoveryDocument;
      XmlTextReader^ myXmlTextReader = gcnew XmlTextReader( "http://localhost/Sample_cs::vsdisco"
 );
      myDiscoveryDocument = DiscoveryDocument::Read( myXmlTextReader );
      
      // Create a new instance of DiscoveryDocumentReference.
      DiscoveryDocumentReference^ myDiscoveryDocumentReference = gcnew DiscoveryDocumentReference;
      
      FileStream^ myFileStream = gcnew FileStream( "Temp::vsdisco",FileMode::OpenOrCreate,FileAccess::Write
 );
      myDiscoveryDocumentReference->WriteDocument( myDiscoveryDocument, myFileStream
 );
      myFileStream->Close();
      
      FileStream^ myFileStream1 = gcnew FileStream( "Temp::vsdisco",FileMode::OpenOrCreate,FileAccess::Read
 );
      StreamReader^ myStreamReader = gcnew StreamReader( myFileStream1 );
      
      // Initialize the file pointer.
      myStreamReader->BaseStream->Seek( 0, SeekOrigin::Begin );
      Console::WriteLine( "The contents of the discovery document are: \n"
 );
      while ( myStreamReader->Peek() > -1 )
      {
         
         // Display the contents of the discovery document.
         Console::WriteLine( myStreamReader->ReadLine() );
      }
      myStreamReader->Close();
   }
   catch ( Exception^ e ) 
   {
      Console::WriteLine( "Exception: {0}", e->Message );
   }

}

import System.*;
import System.Xml.*;
import System.Web.Services.Discovery.*;
import System.IO.*;
import System.Collections.*;

public class DiscoveryDocumentReferenceCtorWriteDocument
{
    public static void main(String[]
 args)
    {
        try {
            DiscoveryDocument myDiscoveryDocument;
            XmlTextReader myXmlTextReader = 
                new XmlTextReader("http://localhost/Sample_jsl.vsdisco");
            myDiscoveryDocument = DiscoveryDocument.Read(myXmlTextReader);
            // Create a new instance of DiscoveryDocumentReference.
            DiscoveryDocumentReference myDiscoveryDocumentReference = 
                new DiscoveryDocumentReference();
            FileStream myFileStream = new FileStream("Temp.vsdisco"
,
                FileMode.OpenOrCreate, FileAccess.Write);
            myDiscoveryDocumentReference.WriteDocument(myDiscoveryDocument,
                myFileStream);
            myFileStream.Close();
            FileStream myFileStream1 = new FileStream("Temp.vsdisco"
,
                FileMode.OpenOrCreate, FileAccess.Read);
            StreamReader myStreamReader = new StreamReader(myFileStream1);
            // Initialize the file pointer.
            myStreamReader.get_BaseStream().Seek(0, SeekOrigin.Begin);
            Console.WriteLine("The contents of the discovery document are: \n");
            while (myStreamReader.Peek() > -1) {
                // Display the contents of the discovery document.
                Console.WriteLine(myStreamReader.ReadLine());
            }
            myStreamReader.Close();
        }
        catch (System.Exception e) {
            Console.WriteLine("Exception: {0}", e.get_Message());
        }
    } //main
} //DiscoveryDocumentReferenceCtorWriteDocument
継承階層継承階層
System.Object
   System.Web.Services.Discovery.DiscoveryReference
    System.Web.Services.Discovery.DiscoveryDocumentReference
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryDocumentReference メンバ
System.Web.Services.Discovery 名前空間
DiscoveryReference
DiscoveryDocument クラス
DiscoveryClientProtocol クラス

DiscoveryDocumentReference コンストラクタ ()

DiscoveryDocumentReference クラス新しインスタンス初期化します。

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

Dim instance As New DiscoveryDocumentReference
public DiscoveryDocumentReference ()
public:
DiscoveryDocumentReference ()
public DiscoveryDocumentReference ()
public function DiscoveryDocumentReference
 ()
使用例使用例
' Create a new instance of DiscoveryDocumentReference.
Dim myDiscoveryDocumentReference As _
    New DiscoveryDocumentReference()
// Create a new instance of DiscoveryDocumentReference.
DiscoveryDocumentReference myDiscoveryDocumentReference = 
    new DiscoveryDocumentReference();
// Create a new instance of DiscoveryDocumentReference.
DiscoveryDocumentReference^ myDiscoveryDocumentReference = gcnew DiscoveryDocumentReference;

// Create a new instance of DiscoveryDocumentReference.
DiscoveryDocumentReference myDiscoveryDocumentReference = 
    new DiscoveryDocumentReference();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryDocumentReference クラス
DiscoveryDocumentReference メンバ
System.Web.Services.Discovery 名前空間

DiscoveryDocumentReference コンストラクタ (String)

DiscoveryDocumentReference クラス新しインスタンス初期化しRef プロパティhref の値に設定します

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

Dim href As String

Dim instance As New DiscoveryDocumentReference(href)
public DiscoveryDocumentReference (
    string href
)
public:
DiscoveryDocumentReference (
    String^ href
)
public DiscoveryDocumentReference (
    String href
)
public function DiscoveryDocumentReference
 (
    href : String
)

パラメータ

href

探索ドキュメントへの参照Ref プロパティは、href の値に設定されます。

使用例使用例
Dim myDiscoveryDocumentReference As New
 _
    DiscoveryDocumentReference("http://localhost/Sample_vb.disco")
DiscoveryDocumentReference myDiscoveryDocumentReference = 
    new DiscoveryDocumentReference(
    "http://localhost/Sample_cs.disco");
DiscoveryDocumentReference^ myDiscoveryDocumentReference = 
   gcnew DiscoveryDocumentReference( 
   "http://localhost/Sample_cpp.disco" );
DiscoveryDocumentReference myDiscoveryDocumentReference = 
    new DiscoveryDocumentReference(
    "http://localhost/Sample_jsl.disco");
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryDocumentReference クラス
DiscoveryDocumentReference メンバ
System.Web.Services.Discovery 名前空間

DiscoveryDocumentReference コンストラクタ

DiscoveryDocumentReference クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
DiscoveryDocumentReference () DiscoveryDocumentReference クラス新しインスタンス初期化します。
DiscoveryDocumentReference (String) DiscoveryDocumentReference クラス新しインスタンス初期化しRef プロパティhref の値に設定します
参照参照

関連項目

DiscoveryDocumentReference クラス
DiscoveryDocumentReference メンバ
System.Web.Services.Discovery 名前空間

DiscoveryDocumentReference プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

DiscoveryDocumentReference クラス
System.Web.Services.Discovery 名前空間
DiscoveryReference
DiscoveryDocument クラス
DiscoveryClientProtocol クラス

DiscoveryDocumentReference メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド FilenameFromUrl  渡されURL基づいてファイル名返します。 ( DiscoveryReference から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド ReadDocument オーバーライドされます渡されStream から探索ドキュメント読み取って返します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド Resolve  Url にある参照されるドキュメントダウンロードして、参照されるドキュメントが有効かどうか解決します。 ( DiscoveryReference から継承されます。)
パブリック メソッド ResolveAll 探索ドキュメント内にあるすべての参照先ドキュメントが、有効かどうか検証します。
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
パブリック メソッド WriteDocument オーバーライドされます渡されStream渡された DiscoveryDocument を書き込みます
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

DiscoveryDocumentReference クラス
System.Web.Services.Discovery 名前空間
DiscoveryReference
DiscoveryDocument クラス
DiscoveryClientProtocol クラス

DiscoveryDocumentReference メンバ

探索ドキュメントへの参照表します。このクラス継承できません。

DiscoveryDocumentReference データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド DiscoveryDocumentReference オーバーロードされます。 DiscoveryDocumentReference クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド FilenameFromUrl  渡されURL基づいてファイル名返します。 (DiscoveryReference から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド ReadDocument オーバーライドされます渡されStream から探索ドキュメント読み取って返します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド Resolve  Url にある参照されるドキュメントダウンロードして、参照されるドキュメントが有効かどうか解決します。 (DiscoveryReference から継承されます。)
パブリック メソッド ResolveAll 探索ドキュメント内にあるすべての参照先ドキュメントが、有効かどうか検証します。
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
パブリック メソッド WriteDocument オーバーライドされます渡されStream渡された DiscoveryDocument を書き込みます
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

DiscoveryDocumentReference クラス
System.Web.Services.Discovery 名前空間
DiscoveryReference
DiscoveryDocument クラス
DiscoveryClientProtocol クラス



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

辞書ショートカット

すべての辞書の索引

「DiscoveryDocumentReference」の関連用語

DiscoveryDocumentReferenceのお隣キーワード
検索ランキング

   

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



DiscoveryDocumentReferenceのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS