SiteMapProvider.SecurityTrimmingEnabled 屬性

定義

取得布林值,指出網站導覽提供者是否根據使用者的角色篩選網站導覽節點。Gets a Boolean value indicating whether a site map provider filters site map nodes based on a user's role.

public:
 property bool SecurityTrimmingEnabled { bool get(); };
public bool SecurityTrimmingEnabled { get; }
member this.SecurityTrimmingEnabled : bool
Public ReadOnly Property SecurityTrimmingEnabled As Boolean

屬性值

Boolean

如果提供者設定為根據角色篩選節點,則為 true,否則為 falsetrue if the provider is configured to filter nodes based on role; otherwise, false.

備註

無法以程式設計方式設定安全性修剪-它是在提供者的設定中設定。Security trimming cannot be set programmatically - it is set in the configuration for the provider.

適用於

另請參閱