SecurityState.IsStateAvailable Method ()

 

Gets a value that indicates whether the state for this implementation of the SecurityState class is available on the current host.

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

[SecurityCriticalAttribute]
public bool IsStateAvailable()

Return Value

Type: System.Boolean

true if the state is available; otherwise, false.

IsStateAvailable calls the AppDomainManager.CheckSecuritySettings method to determine whether the state that is represented by this class is available on the host.

See the SecurityState class for an example implementation of the CheckSecuritySettings method.

SecurityCriticalAttribute

requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

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