[CoreSpotlight] Fixing breaking change. (#16352)

This commit is contained in:
Manuel de la Pena 2022-10-19 08:00:10 -04:00 коммит произвёл GitHub
Родитель c5a42a96cb
Коммит 0f5e4cf1fd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 21 добавлений и 3 удалений

Просмотреть файл

@ -1,11 +1,11 @@
// Compatibility stubs
#if !NET && IOS
using System;
using ObjCRuntime;
namespace CoreSpotlight {
#if !NET && IOS
partial class CSCustomAttributeKey {
[Obsolete ("Use .ctor(string)")]
@ -13,6 +13,24 @@ namespace CoreSpotlight {
{
}
}
#endif
#if !TV
public partial class CSSearchQueryContext {
#if !NET
[Obsolete ("This property was removed. The getter always returns null and the setter throws and InvalidOperationException.")]
#else
[UnsupportedOSPlatform ("ios16.1")]
[UnsupportedOSPlatform ("maccatalyst16.1")]
[UnsupportedOSPlatform ("macos13.0")]
[UnsupportedOSPlatform ("tvos")]
#endif
public virtual string[] ProtectionClasses {
get => null;
set => throw new InvalidOperationException (Constants.ApiRemovedGeneral);
}
}
#endif
}
#endif