internal static bool SetProfilePosition(Base.WlanClient client, Guid interfaceId, string profileName, int position) { if (interfaceId == Guid.Empty) { throw new ArgumentException("The specified interface ID is invalid.", nameof(interfaceId)); } if (string.IsNullOrWhiteSpace(profileName)) { throw new ArgumentNullException(nameof(profileName)); } if (position < 0) { throw new ArgumentOutOfRangeException(nameof(position), "The position must not be negative."); } using var container = new DisposableContainer <Base.WlanClient>(client); return(Base.SetProfilePosition(container.Content.Handle, interfaceId, profileName, (uint)position)); }