System.ServiceModel
4.0.0.0
System.ServiceModel.ICommunicationObject
Channels must satisfy the contract of a state machine as defined by the interface.
The interface adds the
method to the interface. This method provides a mechanism for retrieving properties from the channel stack regardless of where in the stack those properties live. The term "property" in the method name refers to a piece of information that belongs to one of the channels in the stack. The CLR type for that property is determined by . This method of retrieval is also used on channel factories and channel listeners.
IChannel is inherited by each of the channel interfaces associated with the basic message-exchange patterns:
-
for receiving messages.
-
for sending messages.
-
for sending a request.
-
for sending a reply.
-
for bi-directional messaging.
Defines the basic interface that all channel objects must implement. It requires that they implement the state machine interface shared by all communication objects and that they implement a method to retrieve objects from the channel stack.
Method
4.0.0.0
T
ReferenceTypeConstraint
Use this to request a typed object such as an interface for setting properties or getting status from the appropriate layer in the channel stack. If a layer supports returning the requested object, it returns it. If not, it delegates the call down to the next layer in the stack. If it gets to the bottom of the stack and no channel layer supported the requested object, then the method returns null.
Returns a typed object requested, if present, from the appropriate layer in the channel stack.
The typed object requested if it is present or null if it is not.
The typed object for which the method is querying.