[CoreSpotlight] Fixing breaking change. (#16352)
This commit is contained in:
Родитель
c5a42a96cb
Коммит
0f5e4cf1fd
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче