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

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

DiscoveryClientProtocol.AdditionalInformation プロパティ

探索ドキュメント発見され参照加えて情報取得します

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

Dim instance As DiscoveryClientProtocol
Dim value As IList

value = instance.AdditionalInformation
/** @property */
public IList get_AdditionalInformation ()

プロパティ
探索ドキュメント内にある追加情報格納している IList。

解説解説
使用例使用例
Imports System
Imports System.Net
Imports System.Security.Permissions
Imports System.Xml
Imports System.Web.Services.Discovery

Class DiscoverySoapBindingMod
   Shared Sub Main()
      Run()
   End Sub 'Main

   <PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")>
 _
   Shared Sub Run()

        Try

            ' dataservice.disco is a sample discovery document.
            Dim myStringUrl As String
 = "http://localhost/dataservice.disco"

            ' Call the Discover method to populate the Documents property.
            Dim myDiscoveryClientProtocol As
 DiscoveryClientProtocol = _
                New DiscoveryClientProtocol()
            myDiscoveryClientProtocol.Credentials = _
                CredentialCache.DefaultCredentials
            Dim myDiscoveryDocument As DiscoveryDocument
 = _
                myDiscoveryClientProtocol.Discover(myStringUrl)

            Dim mySoapBinding As SoapBinding
 = New SoapBinding()
            mySoapBinding.Address = "http://schemas.xmlsoap.org/disco/scl/"
            mySoapBinding.Binding = New XmlQualifiedName("string",
 _
                "http://www.w3.org/2001/XMLSchema")
            myDiscoveryClientProtocol.AdditionalInformation.Add(mySoapBinding)

            ' Write the information back. 
            myDiscoveryClientProtocol.WriteAll("MyDirectory",
 _
                "results.discomap")

            Dim myIList As System.Collections.IList
 = _
                myDiscoveryClientProtocol.AdditionalInformation
            mySoapBinding = Nothing
            mySoapBinding = CType(myIList(0),SoapBinding)
            Console.WriteLine("The address of the SoapBinding
 associated " _
                & "with AdditionalInformation is: "
 & mySoapBinding.Address)
        Catch e As Exception
            Console.WriteLine(e.ToString())
        End Try

    End Sub 'Run
End Class

using System;
using System.Net;
using System.Security.Permissions;
using System.Xml;
using System.Web.Services.Discovery;

class DiscoverySoapBindingClass
{
   static void Main()
   {
      Run();
   }

   [PermissionSetAttribute(SecurityAction.Demand, Name="FullTrust")]
   static void Run()
   {
        try
        {

            // dataservice.disco is a sample discovery document.
            string myStringUrl = "http://localhost/dataservice.disco";

            // Call the Discover method to populate the Documents property.
            DiscoveryClientProtocol myDiscoveryClientProtocol = 
                new DiscoveryClientProtocol();
            myDiscoveryClientProtocol.Credentials = 
                CredentialCache.DefaultCredentials;
            DiscoveryDocument myDiscoveryDocument = 
                myDiscoveryClientProtocol.Discover(myStringUrl);

            SoapBinding mySoapBinding = new SoapBinding();
            mySoapBinding.Address = "http://schemas.xmlsoap.org/disco/scl/";
            mySoapBinding.Binding = new XmlQualifiedName("string",
 
                "http://www.w3.org/2001/XMLSchema");
            myDiscoveryClientProtocol.AdditionalInformation.Add(mySoapBinding);

            // Write the information back.
            myDiscoveryClientProtocol.WriteAll("MyDirectory",
                "results.discomap");

            System.Collections.IList myIList = 
                myDiscoveryClientProtocol.AdditionalInformation;
            mySoapBinding = null;
            mySoapBinding = (SoapBinding)myIList[0];
            Console.WriteLine("The address of the SoapBinding associated "
 
                + "with AdditionalInformation is: " 
                + mySoapBinding.Address);
        }
        catch (Exception e)
        {
         Console.WriteLine(e.ToString());
        }
    }
}

#using <System.dll>
#using <System.Xml.dll>
#using <System.Web.Services.dll>

using namespace System;
using namespace System::Net;
using namespace System::Xml;
using namespace System::Web::Services::Discovery;

int main()
{
   try
   {
      // dataservice.disco is a sample discovery document.
      String^ myStringUrl = "http://localhost/dataservice.disco";
      
      // Call the Discover method to populate the Documents property.
      DiscoveryClientProtocol^ myDiscoveryClientProtocol = gcnew DiscoveryClientProtocol;
      myDiscoveryClientProtocol->Credentials = CredentialCache::DefaultCredentials;
      myDiscoveryClientProtocol->Discover( myStringUrl );
      SoapBinding^ mySoapBinding = gcnew SoapBinding;
      mySoapBinding->Address = "http://schemas.xmlsoap.org/disco/scl/";
      mySoapBinding->Binding = gcnew XmlQualifiedName( "String*","http://www.w3.org/2001/XMLSchema"
 );
      myDiscoveryClientProtocol->AdditionalInformation->Add( mySoapBinding
 );
      
      // Write the information back.
      myDiscoveryClientProtocol->WriteAll( "MyDirectory", "results.discomap"
 );
      System::Collections::IList^ myIList = myDiscoveryClientProtocol->AdditionalInformation;
      mySoapBinding = nullptr;
      mySoapBinding = dynamic_cast<SoapBinding^>(myIList[ 0 ]);
      Console::WriteLine( "The address of the SoapBinding associated with "
      "AdditionalInformation is: {0}", mySoapBinding->Address );
   }
   catch ( Exception^ e ) 
   {
      Console::WriteLine( e );
   }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryClientProtocol クラス
DiscoveryClientProtocol メンバ
System.Web.Services.Discovery 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS