ResourceBundle.Control.GetFormats(String) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Restituisce un List di dei Stringformati contenenti da utilizzare per caricare i bundle di risorse per l'oggetto specificato baseName.
[Android.Runtime.Register("getFormats", "(Ljava/lang/String;)Ljava/util/List;", "GetGetFormats_Ljava_lang_String_Handler")]
public virtual System.Collections.Generic.IList<string>? GetFormats(string baseName);
[<Android.Runtime.Register("getFormats", "(Ljava/lang/String;)Ljava/util/List;", "GetGetFormats_Ljava_lang_String_Handler")>]
abstract member GetFormats : string -> System.Collections.Generic.IList<string>
override this.GetFormats : string -> System.Collections.Generic.IList<string>
Parametri
- baseName
- String
il nome di base del bundle di risorse, un nome di classe completo
Valori restituiti
oggetto List di Strings contenente i formati per il caricamento di bundle di risorse.
- Attributi
Commenti
Restituisce un List di dei Stringformati contenenti da utilizzare per caricare i bundle di risorse per l'oggetto specificato baseName. Il ResourceBundle.getBundle metodo factory tenta di caricare i bundle di risorse con formati nell'ordine specificato dall'elenco. L'elenco restituito da questo metodo deve avere almeno un Stringoggetto . I formati predefiniti sono "java.class" per i bundle di risorse basati su classi e "java.properties" per quelli basati sulle proprietà PropertyResourceBundle. Le stringhe che iniziano con "java." sono riservate per le estensioni future e non devono essere usate dai formati definiti dall'applicazione.
Non è un requisito per restituire un oggetto non modificabile (non modificabile). List Tuttavia, l'oggetto restituito List non deve essere modificato dopo che è stato restituito da getFormats.
L'implementazione predefinita restituisce #FORMAT_DEFAULT in modo che il ResourceBundle.getBundle metodo factory cerchi i bundle di risorse basati su classi, quindi quelli basati sulle proprietà.
per java.util.ResourceBundle.Control.getFormats(java.lang.String).
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.