public async Task <bool> SetProfilePositionAsync(ProfileItem profileItem, int position) { if (profileItem == null) { throw new ArgumentNullException(nameof(profileItem)); } if (position < 0) { throw new ArgumentOutOfRangeException(nameof(position)); } return(await Task.Run(() => NativeWifi.SetProfilePosition(profileItem.InterfaceId, profileItem.Name, position))); }