SecurityState.EnsureState Method ()


When overridden in a derived class, ensures that the state that is represented by SecurityState is available on the host.

Namespace:   System.Security
Assembly:  mscorlib (in mscorlib.dll)

public abstract void EnsureState()

The implementation of this method should be similar to the following example.

public override void EnsureState()
    if (!IsStateAvailable())
          throw new ApplicationException("WebcamSecurityState not available");

.NET Framework
Available since 2.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top