AppSearchSchema.StringPropertyConfig.DeletePropagationTypePropagateFrom 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.App.AppSearch.AppSearchSchemaDeletePropagationType enum directly instead of this field.
此字串屬性中的內容將作為限定識別碼使用,指向另一個(父)文件,刪除該參考文件會傳播到該(子)文件。
[Android.Runtime.Register("DELETE_PROPAGATION_TYPE_PROPAGATE_FROM", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.AppSearch.AppSearchSchemaDeletePropagationType enum directly instead of this field.", true)]
public const Android.App.AppSearch.AppSearchSchemaDeletePropagationType DeletePropagationTypePropagateFrom = 1;
[<Android.Runtime.Register("DELETE_PROPAGATION_TYPE_PROPAGATE_FROM", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.AppSearch.AppSearchSchemaDeletePropagationType enum directly instead of this field.", true)>]
val mutable DeletePropagationTypePropagateFrom : Android.App.AppSearch.AppSearchSchemaDeletePropagationType
欄位值
Value = 1- 屬性
備註
此字串屬性中的內容將作為限定識別碼使用,指向另一個(父)文件,刪除該參考文件會傳播到該(子)文件。
請注意,這種說法會進一步擴散。 如果子文件中有任何子文件也設定了可加入屬性的刪除傳播類型 PROPAGATE_FROM,那麼這些(孫子)文件將會被刪除。
由於刪除傳播在文件與被參考文件之間運作,若將此類型設定為刪除傳播,字串屬性也應為 id 可加入(即可連接值類型有 StringPropertyConfig.JOINABLE_VALUE_TYPE_QUALIFIED_ID)。 否則,建置會拋出 IllegalStateException(參見 StringPropertyConfig.Builder.build)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。