RolePrincipal::Expired Property

 

Gets a value indicating whether the roles cookie has expired.

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

public:
property bool Expired {
	bool get();
}

Property Value

Type: System::Boolean

true if the roles cookie has expired; otherwise, false.

The Expired property returns a Boolean value indicating whether the roles cookie has expired based on the ExpireDate and the current date and time.

The following example displays role-caching information for the current user if role management is enabled. For information on enabling role management, see the Roles class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: