Determines whether the profile state is defined for this local user profile.


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.


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.