共用方式為


IPropertyMapper.MapLong(String, Int32) 方法

定義

將字串名稱對應至基本long屬性的整數識別碼。

[Android.Runtime.Register("mapLong", "(Ljava/lang/String;I)I", "GetMapLong_Ljava_lang_String_IHandler:Android.Views.Inspectors.IPropertyMapperInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)]
public int MapLong (string name, int attributeId);
[<Android.Runtime.Register("mapLong", "(Ljava/lang/String;I)I", "GetMapLong_Ljava_lang_String_IHandler:Android.Views.Inspectors.IPropertyMapperInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)>]
abstract member MapLong : string * int -> int

參數

name
String

屬性的名稱

attributeId
Int32

此屬性的屬性資源識別碼,或 Resources#ID_NULL

傳回

屬性的整數標識碼

屬性

備註

將字串名稱對應至基本long屬性的整數識別碼。

android.view.inspector.PropertyMapper.mapLong(java.lang.String, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於