IChannelReceiverHook.ChannelSinkChain Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the channel sink chain that the current channel is using.
public:
property System::Runtime::Remoting::Channels::IServerChannelSink ^ ChannelSinkChain { System::Runtime::Remoting::Channels::IServerChannelSink ^ get(); };
public System.Runtime.Remoting.Channels.IServerChannelSink ChannelSinkChain { get; }
public System.Runtime.Remoting.Channels.IServerChannelSink ChannelSinkChain { [System.Security.SecurityCritical] get; }
member this.ChannelSinkChain : System.Runtime.Remoting.Channels.IServerChannelSink
[<get: System.Security.SecurityCritical>]
member this.ChannelSinkChain : System.Runtime.Remoting.Channels.IServerChannelSink
Public ReadOnly Property ChannelSinkChain As IServerChannelSink
Property Value
The channel sink chain that the current channel is using.
- Attributes
Exceptions
The immediate caller does not have infrastructure permission.
Examples
ref class CustomChannel: public BaseChannelWithProperties, public IChannelReceiverHook, public IChannelReceiver, public IChannel, public IChannelSender
{
public:
property IServerChannelSink^ ChannelSinkChain
{
// TransportSink is a private class defined within CustomChannel.
virtual IServerChannelSink^ get()
{
return transportSink->NextChannelSink;
}
}
// Rest of CustomChannel's implementation...
class CustomChannel : BaseChannelWithProperties, IChannelReceiverHook,
IChannelReceiver, IChannel, IChannelSender {
// TransportSink is a private class defined within CustomChannel.
TransportSink transportSink;
public IServerChannelSink ChannelSinkChain {
get { return transportSink.NextChannelSink; }
}
// Rest of CustomChannel's implementation...
Class CustomChannel
Inherits BaseChannelWithProperties
Implements IChannelReceiverHook, IChannelReceiver, IChannel, IChannelSender
' TransportSink is a private class defined within CustomChannel.
Private myTransportSink As TransportSink
Public ReadOnly Property ChannelSinkChain() As IServerChannelSink Implements IChannelReceiverHook.ChannelSinkChain
Get
Return myTransportSink.NextChannelSink
End Get
End Property
' Rest of CustomChannel's implementation...
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ