Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft