语言

WindowsServiceElement.IncludeWindowsGroups 属性

定义

获取或设置一个值,该值指示 Windows 组是否包含在安全上下文中。

public:
 property bool IncludeWindowsGroups { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("includeWindowsGroups", DefaultValue=true)]
public bool IncludeWindowsGroups { get; set; }
[<System.Configuration.ConfigurationProperty("includeWindowsGroups", DefaultValue=true)>]
member this.IncludeWindowsGroups : bool with get, set
Public Property IncludeWindowsGroups As Boolean

属性值

如果安全上下文中包含Windows组,true;否则为 false。 默认值为 false。

属性

注解

将此属性设置为 true 具有性能影响,因为它会导致整个组扩展。 如果不需要建立用户所属的组列表,请将此属性设置为该属性 false 。

适用于