Partager via


IpcServerChannel Constructeurs

Définition

Initialise une nouvelle instance de la classe IpcServerChannel.

Surcharges

Nom Description
IpcServerChannel(String)

Initialise une nouvelle instance de la IpcServerChannel classe avec le nom de port IPC spécifié.

IpcServerChannel(IDictionary, IServerChannelSinkProvider)

Initialise une nouvelle instance de la IpcServerChannel classe avec les propriétés et le récepteur de canal spécifiés.

IpcServerChannel(String, String)

Initialise une nouvelle instance de la IpcServerChannel classe avec le nom de canal et le nom de port IPC spécifiés.

IpcServerChannel(IDictionary, IServerChannelSinkProvider, CommonSecurityDescriptor)

Initialise une nouvelle instance de la IpcServerChannel classe avec les propriétés de canal, le récepteur et le descripteur de sécurité spécifiés.

IpcServerChannel(String, String, IServerChannelSinkProvider)

Initialise une nouvelle instance de la IpcServerChannel classe avec le nom de canal, le nom de port IPC et le récepteur spécifiés.

IpcServerChannel(String)

Initialise une nouvelle instance de la IpcServerChannel classe avec le nom de port IPC spécifié.

public:
 IpcServerChannel(System::String ^ portName);
public IpcServerChannel(string portName);
new System.Runtime.Remoting.Channels.Ipc.IpcServerChannel : string -> System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
Public Sub New (portName As String)

Paramètres

portName
String

Nom du port IPC à utiliser par le canal.

Exemples

L’exemple de code suivant montre comment utiliser ce constructeur.

// Create and register an IPC channel
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( L"remote" );
ChannelServices::RegisterChannel( serverChannel );
// Create and register an IPC channel
IpcServerChannel serverChannel = new IpcServerChannel("remote");
ChannelServices.RegisterChannel(serverChannel);

S’applique à

IpcServerChannel(IDictionary, IServerChannelSinkProvider)

Initialise une nouvelle instance de la IpcServerChannel classe avec les propriétés et le récepteur de canal spécifiés.

public:
 IpcServerChannel(System::Collections::IDictionary ^ properties, System::Runtime::Remoting::Channels::IServerChannelSinkProvider ^ sinkProvider);
public IpcServerChannel(System.Collections.IDictionary properties, System.Runtime.Remoting.Channels.IServerChannelSinkProvider sinkProvider);
new System.Runtime.Remoting.Channels.Ipc.IpcServerChannel : System.Collections.IDictionary * System.Runtime.Remoting.Channels.IServerChannelSinkProvider -> System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
Public Sub New (properties As IDictionary, sinkProvider As IServerChannelSinkProvider)

Paramètres

properties
IDictionary

Collection IDictionary qui spécifie les valeurs des propriétés de configuration à utiliser par le canal.

sinkProvider
IServerChannelSinkProvider

Implémentation IServerChannelSinkProvider à utiliser par le canal.

Exemples

L’exemple de code suivant montre comment utiliser ce constructeur.

// Create the server channel.
System::Collections::IDictionary^ properties = gcnew System::Collections::Hashtable;
properties->default[ L"name" ] = L"ipc";
properties->default[ L"priority" ] = L"20";
properties->default[ L"portName" ] = L"localhost:9090";
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( properties, nullptr );
// Create the server channel.
System.Collections.IDictionary properties =
    new System.Collections.Hashtable();
properties["name"] = "ipc";
properties["priority"] = "20";
properties["portName"] = "localhost:9090";
IpcServerChannel serverChannel =
    new IpcServerChannel(properties, null);

Remarques

Pour plus d’informations sur les propriétés de configuration de canal, consultez Propriétés de configuration du canal et du formateur.

Si vous n’avez pas besoin de fonctionnalités de récepteur, définissez le sinkProvider paramètre nullsur .

Avertissement

Lors de la définition de la exclusiveAddressUse propriété false dans l’argument properties , plusieurs IpcServerChannel objets peuvent être inscrits pour le même canal nommé. Dans ce cas, les demandes peuvent accéder à l’un des canaux inscrits. Ce paramètre est considéré comme sécurisé uniquement si les AFC sont également utilisées.

Voir aussi

S’applique à

IpcServerChannel(String, String)

Initialise une nouvelle instance de la IpcServerChannel classe avec le nom de canal et le nom de port IPC spécifiés.

public:
 IpcServerChannel(System::String ^ name, System::String ^ portName);
public IpcServerChannel(string name, string portName);
new System.Runtime.Remoting.Channels.Ipc.IpcServerChannel : string * string -> System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
Public Sub New (name As String, portName As String)

Paramètres

name
String

Nom du canal.

portName
String

Nom du port IPC à utiliser par le canal.

Exemples

L’exemple de code suivant montre comment utiliser ce constructeur.

// Create the server channel.
String^ name = L"ipc";
String^ portName = L"localhost:9090";
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( name,portName );
// Create the server channel.
string name = "ipc";
string portName = "localhost:9090";
IpcServerChannel serverChannel =
    new IpcServerChannel(name, portName);

Remarques

Ce constructeur définit la ChannelName propriété à l’aide du name paramètre. Si vous souhaitez inscrire plusieurs canaux, chaque canal doit avoir un nom unique.

S’applique à

IpcServerChannel(IDictionary, IServerChannelSinkProvider, CommonSecurityDescriptor)

Initialise une nouvelle instance de la IpcServerChannel classe avec les propriétés de canal, le récepteur et le descripteur de sécurité spécifiés.

public:
 IpcServerChannel(System::Collections::IDictionary ^ properties, System::Runtime::Remoting::Channels::IServerChannelSinkProvider ^ sinkProvider, System::Security::AccessControl::CommonSecurityDescriptor ^ securityDescriptor);
public IpcServerChannel(System.Collections.IDictionary properties, System.Runtime.Remoting.Channels.IServerChannelSinkProvider sinkProvider, System.Security.AccessControl.CommonSecurityDescriptor securityDescriptor);
new System.Runtime.Remoting.Channels.Ipc.IpcServerChannel : System.Collections.IDictionary * System.Runtime.Remoting.Channels.IServerChannelSinkProvider * System.Security.AccessControl.CommonSecurityDescriptor -> System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
Public Sub New (properties As IDictionary, sinkProvider As IServerChannelSinkProvider, securityDescriptor As CommonSecurityDescriptor)

Paramètres

properties
IDictionary

Collection IDictionary qui spécifie les valeurs des propriétés de configuration à utiliser par le canal.

sinkProvider
IServerChannelSinkProvider

Implémentation IServerChannelSinkProvider à utiliser par le canal.

securityDescriptor
CommonSecurityDescriptor

À CommonSecurityDescriptor utiliser par le canal.

Remarques

Pour plus d’informations sur les propriétés de configuration de canal, consultez Propriétés de configuration du canal et du formateur.

Si vous n’avez pas besoin de fonctionnalités de récepteur, définissez le sinkProvider paramètre nullsur . Si vous n’avez pas besoin d’un descripteur de sécurité, définissez le securityDescriptor paramètre nullsur .

Avertissement

Lors de la définition de la exclusiveAddressUse propriété false dans l’argument properties , plusieurs IpcServerChannel objets peuvent être inscrits pour le même canal nommé. Dans ce cas, les demandes peuvent accéder à l’un des canaux inscrits. Ce paramètre est considéré comme sécurisé uniquement si les AFC sont également utilisées.

Voir aussi

S’applique à

IpcServerChannel(String, String, IServerChannelSinkProvider)

Initialise une nouvelle instance de la IpcServerChannel classe avec le nom de canal, le nom de port IPC et le récepteur spécifiés.

public:
 IpcServerChannel(System::String ^ name, System::String ^ portName, System::Runtime::Remoting::Channels::IServerChannelSinkProvider ^ sinkProvider);
public IpcServerChannel(string name, string portName, System.Runtime.Remoting.Channels.IServerChannelSinkProvider sinkProvider);
new System.Runtime.Remoting.Channels.Ipc.IpcServerChannel : string * string * System.Runtime.Remoting.Channels.IServerChannelSinkProvider -> System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
Public Sub New (name As String, portName As String, sinkProvider As IServerChannelSinkProvider)

Paramètres

name
String

Nom du canal.

portName
String

Nom du port IPC à utiliser par le canal.

sinkProvider
IServerChannelSinkProvider

Implémentation IServerChannelSinkProvider à utiliser par le canal.

Exemples

L’exemple de code suivant montre comment utiliser ce constructeur.

// Create the server channel.
String^ name = L"ipc";
String^ portName = L"localhost:9090";
IServerChannelSinkProvider^ sinkProvider = nullptr;
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( name,portName,sinkProvider );
// Create the server channel.
string name = "ipc";
string portName = "localhost:9090";
IServerChannelSinkProvider sinkProvider = null;
IpcServerChannel serverChannel =
    new IpcServerChannel(name, portName, sinkProvider);

Remarques

Ce constructeur définit la ChannelName propriété à l’aide du name paramètre. Si vous souhaitez inscrire plusieurs canaux, chaque canal doit avoir un nom unique.

Si vous n’avez pas besoin de fonctionnalités de récepteur, définissez le sinkProvider paramètre nullsur .

S’applique à