WatchAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| WatchAttribute(Byte, Byte) |
使用指定的架構、主要和次要版本,初始化 watchOS 的新可用性屬性。 |
| WatchAttribute(Byte, Byte, Boolean) |
使用指定的主要和次要版本,以及屬性僅適用于 64 位架構時,初始化 watchOS 的新可用性屬性。 |
| WatchAttribute(Byte, Byte, Byte) |
使用指定的架構、主要、次要和子系統版本,初始化 watchOS 的新可用性屬性。 |
| WatchAttribute(Byte, Byte, Byte, Boolean) |
使用指定的主要、次要和子系統版本,以及屬性僅適用于 64 位架構,初始化 watchOS 的新可用性屬性。 |
WatchAttribute(Byte, Byte)
WatchAttribute(Byte, Byte, Boolean)
WatchAttribute(Byte, Byte, Byte)
WatchAttribute(Byte, Byte, Byte, Boolean)
使用指定的主要、次要和子系統版本,以及屬性僅適用于 64 位架構,初始化 watchOS 的新可用性屬性。
public WatchAttribute (byte major, byte minor, byte subminor, bool onlyOn64);
new ObjCRuntime.WatchAttribute : byte * byte * byte * bool -> ObjCRuntime.WatchAttribute
參數
- major
- Byte
主要版本號碼。
- minor
- Byte
次要版本號碼。
- subminor
- Byte
子管理版本號碼。
- onlyOn64
- Boolean
如果屬性僅適用于 64 位架構。