ValidateCreateChannel Method

ChannelFactoryBase<TChannel>.ValidateCreateChannel Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Confirms that the channel factory is opened and ready to create channels.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected void ValidateCreateChannel()

ExceptionCondition
ObjectDisposedException

The communication object is in a Closing or Closed state.

CommunicationObjectFaultedException

The communication object is in a Faulted state.

InvalidOperationException

The current channel factory is not in the Opened state.

The method throws one of the exceptions in the preceding table and checks for the conditions in the order they are listed in the table.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft