IsProfileStateDefined
Determines whether the profile state is defined for this local user profile.
Syntax
bool IsProfileStateDefined {get; set;}
Property value
Returns true if there is a profile state defined for this user. Set this
property false to clear the profile state.
Exceptions
IsProfileStateDefined throws an InvalidOperationException if:
-
The profile state has not been defined and you attempt to set this property to
true. -
This is not a local user profile and you attempt to set or get this property.