다음을 통해 공유


RestrictionEntry.SetChoiceEntries 메서드

정의

오버로드

SetChoiceEntries(String[])

사용자에게 선택 항목으로 표시될 문자열 목록을 설정합니다.

SetChoiceEntries(Context, Int32)

사용자에게 선택 항목으로 표시될 문자열 목록을 설정합니다.

SetChoiceEntries(String[])

사용자에게 선택 항목으로 표시될 문자열 목록을 설정합니다.

[Android.Runtime.Register("setChoiceEntries", "([Ljava/lang/String;)V", "GetSetChoiceEntries_arrayLjava_lang_String_Handler")]
public virtual void SetChoiceEntries (string[]? choiceEntries);
[<Android.Runtime.Register("setChoiceEntries", "([Ljava/lang/String;)V", "GetSetChoiceEntries_arrayLjava_lang_String_Handler")>]
abstract member SetChoiceEntries : string[] -> unit
override this.SetChoiceEntries : string[] -> unit

매개 변수

choiceEntries
String[]

사용자가 볼 수 있는 선택 항목 목록입니다.

특성

설명

사용자에게 선택 항목으로 표시될 문자열 목록을 설정합니다. 사용자가 이러한 선택 항목 중 하나 이상을 선택하면 가능한 값의 해당 값이 선택한 문자열로 저장됩니다. 이 배열의 크기는 에 #setChoiceValues(String[])설정된 배열의 크기와 일치해야 합니다. 이 메서드는 및 이외의 #TYPE_CHOICE형식과 #TYPE_MULTI_SELECT관련이 없습니다.

에 대한 Java 설명서입니다 android.content.RestrictionEntry.setChoiceEntries(java.lang.String[]).

이 페이지의 일부는 만들고 공유하며 에 설명된 조건에 따라 사용되는 작업을 기반으로 수정됩니다.

추가 정보

적용 대상

SetChoiceEntries(Context, Int32)

사용자에게 선택 항목으로 표시될 문자열 목록을 설정합니다.

[Android.Runtime.Register("setChoiceEntries", "(Landroid/content/Context;I)V", "GetSetChoiceEntries_Landroid_content_Context_IHandler")]
public virtual void SetChoiceEntries (Android.Content.Context? context, int stringArrayResId);
[<Android.Runtime.Register("setChoiceEntries", "(Landroid/content/Context;I)V", "GetSetChoiceEntries_Landroid_content_Context_IHandler")>]
abstract member SetChoiceEntries : Android.Content.Context * int -> unit
override this.SetChoiceEntries : Android.Content.Context * int -> unit

매개 변수

context
Context

리소스를 검색하는 데 사용되는 애플리케이션 컨텍스트입니다.

stringArrayResId
Int32

가능한 항목을 포함하는 문자열 배열의 리소스 ID입니다.

특성

설명

사용자에게 선택 항목으로 표시될 문자열 목록을 설정합니다. 이는 #setChoiceEntries(String[])과 유사합니다.

에 대한 Java 설명서입니다 android.content.RestrictionEntry.setChoiceEntries(android.content.Context, int).

이 페이지의 일부는 만들고 공유하며 에 설명된 조건에 따라 사용되는 작업을 기반으로 수정됩니다.

적용 대상