| 
            
              UserInfoRemoveLocalUser Method
             | 
          
        
        
            Removes local user if it exists.
            
        
        Namespace: GSF.IdentityAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntaxpublic static bool RemoveLocalUser(
	string userName
)
Public Shared Function RemoveLocalUser ( 
	userName As String
) As Boolean
public:
static bool RemoveLocalUser(
	String^ userName
)
static member RemoveLocalUser : 
        userName : string -> bool GSF.Identity.UserInfo.RemoveLocalUser = function(userName);
 View SourceParameters
- userName  String
 - User name to remove if it exists.
 
Return Value
Booleantrue if user was removed; otherwise, 
false if user did not exist.
Exceptions| Exception | Condition | 
|---|
| ArgumentNullException | userName was null. | 
| ArgumentException | No userName was specified. | 
| InvalidOperationException | Could not remove local user. | 
See Also