| 
            
              UserInfoCreateLocalGroup Method
             | 
          
        
        
            Creates a new local group if it does not exist already.
            
        
        Namespace: GSF.IdentityAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntaxpublic static bool CreateLocalGroup(
	string groupName,
	string groupDescription = null
)
Public Shared Function CreateLocalGroup ( 
	groupName As String,
	Optional groupDescription As String = Nothing
) As Boolean
public:
static bool CreateLocalGroup(
	String^ groupName, 
	String^ groupDescription = nullptr
)
static member CreateLocalGroup : 
        groupName : string * 
        ?groupDescription : string 
(* Defaults:
        let _groupDescription = defaultArg groupDescription null
*)
-> bool GSF.Identity.UserInfo.CreateLocalGroup = function(groupName, groupDescription);
 View SourceParameters
- groupName  String
 - Group name to create if it doesn't exist.
 - groupDescription  String  (Optional)
 - Optional group description.
 
Return Value
Booleantrue if group was created; otherwise, 
false if group already existed.
Exceptions| Exception | Condition | 
|---|
| ArgumentNullException | groupName was null. | 
| ArgumentException | No groupName was specified. | 
| InvalidOperationException | Could not create local group. | 
See Also