CommunicationObject Methods

The CommunicationObject type exposes the following members.

  Name Description
Public method Abort Causes a communication object to transition immediately from its current state into the closing state.
Public method BeginClose(AsyncCallback, Object) Begins an asynchronous operation to close a communication object.
Public method BeginClose(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to close a communication object with a specified timeout.
Public method BeginOpen(AsyncCallback, Object) Begins an asynchronous operation to open a communication object.
Public method BeginOpen(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to open a communication object within a specified interval of time.
Public method Close() Causes a communication object to transition from its current state into the closed state.
Public method Close(TimeSpan) Causes a communication object to transition from its current state into the closed state within a specified interval of time.
Public method EndClose Completes an asynchronous operation to close a communication object.
Public method EndOpen Completes an asynchronous operation to open a communication object.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Fault Causes a communication object to transition from its current state into the faulted state.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetCommunicationObjectType Gets the type of communication object.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnAbort Inserts processing on a communication object after it transitions to the closing state due to the invocation of a synchronous abort operation.
Protected method OnBeginClose Inserts processing after a communication object transitions to the closing state due to the invocation of an asynchronous close operation.
Protected method OnBeginOpen Inserts processing on a communication object after it transitions to the opening state due to the invocation of an asynchronous open operation.
Protected method OnClose Inserts processing on a communication object after it transitions to the closing state due to the invocation of a synchronous close operation.
Protected method OnClosed Invoked during the transition of a communication object into the closing state.
Protected method OnClosing Invoked during the transition of a communication object into the closing state.
Protected method OnEndClose Completes an asynchronous operation on the close of a communication object.
Protected method OnEndOpen Completes an asynchronous operation on the open of a communication object.
Protected method OnFaulted Inserts processing on a communication object after it transitions to the faulted state due to the invocation of a synchronous fault operation.
Protected method OnOpen Inserts processing on a communication object after it transitions into the opening state which must complete within a specified interval of time.
Protected method OnOpened Invoked during the transition of a communication object into the opened state.
Protected method OnOpening Invoked during the transition of a communication object into the opening state.
Public method Open() Causes a communication object to transition from the created state into the opened state.
Public method Open(TimeSpan) Causes a communication object to transition from the created state into the opened state within a specified interval of time.
Protected method ThrowIfDisposed Throws an exception if the communication object is disposed.
Protected method ThrowIfDisposedOrImmutable Throws an exception if the communication object the State property is not set to the Created state.
Protected method ThrowIfDisposedOrNotOpen Throws an exception if the communication object is not in the Opened state.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft