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

ActivatedServiceTypeEntry クラス

クライアントからの要求基づいてアクティブにできる型として、サービス エンド登録されオブジェクト型の値を保持します

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

<ComVisibleAttribute(True)> _
Public Class ActivatedServiceTypeEntry
    Inherits TypeEntry
Dim instance As ActivatedServiceTypeEntry
[ComVisibleAttribute(true)] 
public class ActivatedServiceTypeEntry : TypeEntry
[ComVisibleAttribute(true)] 
public ref class ActivatedServiceTypeEntry
 : public TypeEntry
/** @attribute ComVisibleAttribute(true) */ 
public class ActivatedServiceTypeEntry extends
 TypeEntry
ComVisibleAttribute(true) 
public class ActivatedServiceTypeEntry extends
 TypeEntry
解説解説

現在のクラスは、RemotingConfiguration.RegisterActivatedServiceType メソッド使用します。これは、RemotingConfiguration.RegisterActivatedClientType メソッド対応するサーバー側のメソッドです。RegisterActivatedServiceType メソッドは、指定したオブジェクト型クライアントによるリモート アクティベーション許可するために、サーバー使用されます。

クライアント側アクティブ化されるオブジェクトサーバー作成するには、Type確認しRegisterActivatedServiceType メソッド使用してサーバー エンド登録する必要がありますクライアント側アクティブ化される新しオブジェクトプロキシ取得するには、クライアント初めにそのチャネルを ChannelServices で登録してから、new または Activator.CreateInstance を呼び出して、そのオブジェクトアクティブにする必要があります

クライアント側アクティブ化されるオブジェクトの型を new キーワードを使用してアクティブにするには、初めに RegisterActivatedClientType メソッド使用して、そのオブジェクトの型をクライアント側登録しておく必要がありますRegisterActivatedClientType呼び出すと、new作成しようとするリモート アプリケーションの場所がリモート処理インフラストラクチャ通知されます。一方CreateInstance メソッド使用してクライアント側アクティブ化されるオブジェクト新しインスタンス作成する場合は、リモート アプリケーションURLパラメータ指定する必要がありますこのためクライアントでの事前の登録は必要ありません。CreateInstance メソッドに、オブジェクト作成するサーバーURL指定するには、UrlAttribute クラスインスタンスにその URLカプセル化する必要があります

クライアント側アクティブ化されるオブジェクトリモート オブジェクト アクティベーション詳細については、「リモート オブジェクトアクティべーション」を参照してください

使用例使用例
Imports System
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.Tcp

Public Class MyClient
   
   Public Shared Sub Main()
      ChannelServices.RegisterChannel(New TcpChannel(8082))
      ' Create an instance of 'ActivatedServiceTypeEntry' class
      ' which holds the values for 'HelloServer' type.
      Dim myActivatedServiceTypeEntry As New
 ActivatedServiceTypeEntry(GetType(HelloServer))
      ' Register an object Type on the service end so that 
      ' it can be activated on request from a client.
      RemotingConfiguration.RegisterActivatedServiceType(myActivatedServiceTypeEntry)
      ' Get the registered activated service types .
      Dim myActivatedServiceEntries As ActivatedServiceTypeEntry()
 = RemotingConfiguration. _
                                                         GetRegisteredActivatedServiceTypes()
      Console.WriteLine("Information of first registered activated
 " + " service type :")
      Console.WriteLine("Object type: " + myActivatedServiceEntries(0).ObjectType.ToString())
      Console.WriteLine("Description: " + myActivatedServiceEntries(0).ToString())
      Console.WriteLine("Press enter to stop this process")
      Console.ReadLine()
   End Sub 'Main
End Class 'MyClient
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;

public class MyClient
{
   public static void Main()
   {
      ChannelServices.RegisterChannel(new TcpChannel(8082));
      // Create an instance of 'ActivatedServiceTypeEntry' class
      // which holds the values for 'HelloServer' type.
      ActivatedServiceTypeEntry myActivatedServiceTypeEntry =
                   new ActivatedServiceTypeEntry(typeof(HelloServer));
      // Register an object Type on the service end so that 
      // it can be activated on request from a client.
      RemotingConfiguration.RegisterActivatedServiceType(
                                         myActivatedServiceTypeEntry);
      // Get the registered activated service types .
      ActivatedServiceTypeEntry[] myActivatedServiceEntries =
          RemotingConfiguration.GetRegisteredActivatedServiceTypes();
      Console.WriteLine("Information of first registered activated "
                             +" service type :");
      Console.WriteLine("Object type: "
                       +myActivatedServiceEntries[0].ObjectType);
      Console.WriteLine("Description: " 
                           +myActivatedServiceEntries[0].ToString());
      Console.WriteLine("Press enter to stop this process");
      Console.ReadLine();
   }
}
#using <System.Runtime.Remoting.dll>
#using <ActivatedServiceTypeEntry_ObjectType_Share.dll>

using namespace System;
using namespace System::Runtime::Remoting;
using namespace System::Runtime::Remoting::Channels;
using namespace System::Runtime::Remoting::Channels::Tcp;
void main()
{
   ChannelServices::RegisterChannel( gcnew TcpChannel( 8082 ) );
   
   // Create an instance of 'ActivatedServiceTypeEntry' class
   // which holds the values for 'HelloServer' type.
   ActivatedServiceTypeEntry^ myActivatedServiceTypeEntry =
      gcnew ActivatedServiceTypeEntry( HelloServer::typeid );
   
   // Register an object Type on the service end so that 
   // it can be activated on request from a client.
   RemotingConfiguration::RegisterActivatedServiceType(
      myActivatedServiceTypeEntry );
   
   // Get the registered activated service types.
   array<ActivatedServiceTypeEntry^>^ activatedServiceEntries =
      RemotingConfiguration::GetRegisteredActivatedServiceTypes();
   Console::WriteLine( "Information of first registered activated" +
     " service type :" );
   Console::WriteLine( "Object type: {0}",
      activatedServiceEntries[ 0 ]->ObjectType->ToString() );
   Console::WriteLine( "Description: {0}",
      activatedServiceEntries[ 0 ]->ToString() );

   Console::WriteLine( "Press enter to stop this process"
 );
   Console::ReadLine();
}
import System.*;
import System.Runtime.Remoting.*;
import System.Runtime.Remoting.Channels.*;
import System.Runtime.Remoting.Channels.Tcp.*;

public class MyClient
{
    public static void main(String[]
 args)
    {
        ChannelServices.RegisterChannel(new TcpChannel(8082));

        // Create an instance of 'ActivatedServiceTypeEntry' class
        // which holds the values for 'HelloServer' type.
        ActivatedServiceTypeEntry myActivatedServiceTypeEntry = 
            new ActivatedServiceTypeEntry(HelloServer.class.ToType());

        // Register an object Type on the service end so that 
        // it can be activated on request from a client.
        RemotingConfiguration.RegisterActivatedServiceType(
            myActivatedServiceTypeEntry);

        // Get the registered activated service types.
        ActivatedServiceTypeEntry myActivatedServiceEntries[] = 
            RemotingConfiguration.GetRegisteredActivatedServiceTypes();

        Console.WriteLine("Information of first registered activated "
 
            + " service type :");
        Console.WriteLine("Object type: " 
            + ((ActivatedServiceTypeEntry)myActivatedServiceEntries.
            get_Item(0)).get_ObjectType());
        Console.WriteLine("Description: " 
            + myActivatedServiceEntries.get_Item(0).ToString());

        Console.WriteLine("Press enter to stop this process");
        Console.ReadLine();
    } //main
} //MyClient
継承階層継承階層
System.Object
   System.Runtime.Remoting.TypeEntry
    System.Runtime.Remoting.ActivatedServiceTypeEntry
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ActivatedServiceTypeEntry メンバ
System.Runtime.Remoting 名前空間
RegisterActivatedServiceType
その他の技術情報
クライアント アクティベーション

ActivatedServiceTypeEntry コンストラクタ (Type)


ActivatedServiceTypeEntry コンストラクタ

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

名前 説明
ActivatedServiceTypeEntry (Type) 指定した Type使用してActivatedServiceTypeEntry クラス新しインスタンス初期化します。
ActivatedServiceTypeEntry (String, String) 指定した型名アセンブリ名使用してActivatedServiceTypeEntry クラス新しインスタンス初期化します。
参照参照

関連項目

ActivatedServiceTypeEntry クラス
ActivatedServiceTypeEntry メンバ
System.Runtime.Remoting 名前空間

ActivatedServiceTypeEntry コンストラクタ (String, String)

指定した型名アセンブリ名使用して、ActivatedServiceTypeEntry クラス新しインスタンス初期化します。

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

Public Sub New ( _
    typeName As String, _
    assemblyName As String _
)
Dim typeName As String
Dim assemblyName As String

Dim instance As New ActivatedServiceTypeEntry(typeName,
 assemblyName)
public ActivatedServiceTypeEntry (
    string typeName,
    string assemblyName
)
public:
ActivatedServiceTypeEntry (
    String^ typeName, 
    String^ assemblyName
)
public ActivatedServiceTypeEntry (
    String typeName, 
    String assemblyName
)
public function ActivatedServiceTypeEntry (
    typeName : String, 
    assemblyName : String
)

パラメータ

typeName

クライアント側アクティブ化されるサービス型の型名

assemblyName

クライアント側アクティブ化されるサービス型のアセンブリ名

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

ActivatedServiceTypeEntry プロパティ


ActivatedServiceTypeEntry メソッド


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

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ActivatedServiceTypeEntry クラス
System.Runtime.Remoting 名前空間
RegisterActivatedServiceType

その他の技術情報

クライアント アクティベーション

ActivatedServiceTypeEntry メンバ

クライアントからの要求基づいてアクティブにできる型として、サービス エンド登録されオブジェクト型の値を保持します

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ActivatedServiceTypeEntry オーバーロードされます。 ActivatedServiceTypeEntry クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ActivatedServiceTypeEntry クラス
System.Runtime.Remoting 名前空間
RegisterActivatedServiceType

その他の技術情報

クライアント アクティベーション


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

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

辞書ショートカット

すべての辞書の索引

「ActivatedServiceTypeEntry」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS