RoleManagerSection.MaxCachedResults 属性

定义

获取或设置 ASP.NET 在角色 Cookie 中缓存的角色的最大数目。

public:
 property int MaxCachedResults { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxCachedResults", DefaultValue=25)]
public int MaxCachedResults { get; set; }
[<System.Configuration.ConfigurationProperty("maxCachedResults", DefaultValue=25)>]
member this.MaxCachedResults : int with get, set
Public Property MaxCachedResults As Integer

属性值

Int32

一个用于指示 ASP.NET 在角色 Cookie 中缓存的角色的最大数目的值。 默认值为 25。

属性

注解

MaxCachedResults属性返回一个整数,指示角色 Cookie 中 ASP.NET 缓存的最大角色数。 默认值为 25。

适用于

另请参阅