語言

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

屬性值

true 若包含Windows群組則為安全情境;否則為 false。 預設值為 false。

屬性

備註

將此屬性設為 會 true 影響效能,因為會導致整個群組展開。 如果你不需要建立使用者所屬群組的清單,請將此屬性設為false

適用於