PropertyPath.PathSegment.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Create(String) |
接受和验证属性名称的创建方法。 属性索引设置为NON_REPEATED_CARDINALITY。 |
| Create(String, Int32) |
用于接受和验证属性名称和索引到属性中的创建方法。 |
Create(String)
接受和验证属性名称的创建方法。 属性索引设置为NON_REPEATED_CARDINALITY。
[Android.Runtime.Register("create", "(Ljava/lang/String;)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)]
public static Android.App.AppSearch.PropertyPath.PathSegment Create(string propertyName);
[<Android.Runtime.Register("create", "(Ljava/lang/String;)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)>]
static member Create : string -> Android.App.AppSearch.PropertyPath.PathSegment
参数
- propertyName
- String
属性的名称。 此值不能为 null。
返回
新的 PathSegment。 此值不能为 null。
- 特性
注解
接受和验证属性名称的创建方法。 属性索引设置为NON_REPEATED_CARDINALITY。
Android 参考。android.app.appsearch.PropertyPath.PathSegment.create
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
Create(String, Int32)
用于接受和验证属性名称和索引到属性中的创建方法。
[Android.Runtime.Register("create", "(Ljava/lang/String;I)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)]
public static Android.App.AppSearch.PropertyPath.PathSegment Create(string propertyName, int propertyIndex);
[<Android.Runtime.Register("create", "(Ljava/lang/String;I)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)>]
static member Create : string * int -> Android.App.AppSearch.PropertyPath.PathSegment
参数
- propertyName
- String
属性的名称。 此值不能为 null。
- propertyIndex
- Int32
属性中的索引
返回
新的 PathSegment。 此值不能为 null。
- 特性
注解
用于接受和验证属性名称和索引到属性中的创建方法。 属性名称可能不为空。 它还可能不包含方括号或点,因为它们是属性路径中的控制字符。 属性中的索引可能不是负数,除非它NON_REPEATED_CARDINALITY,因为这些索引是无效的数组索引。
Android 参考。android.app.appsearch.PropertyPath.PathSegment.create
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。