EnsureOpened Method

ChannelFactory.EnsureOpened Method

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

Opens the current channel factory if it is not yet opened.

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

protected void EnsureOpened()

ExceptionCondition
ObjectDisposedException

The current factory is either closing or closed and so cannot be opened.

Before opening the channel factory, checks that it is not Closed, Closing, or Opened.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft