SuppressWarnings.Value Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The set of warnings that are to be suppressed by the compiler in the annotated element.
[Android.Runtime.Register("value", "()[Ljava/lang/String;", "GetValueHandler")]
public abstract string[]? Value ();
[<Android.Runtime.Register("value", "()[Ljava/lang/String;", "GetValueHandler")>]
abstract member Value : unit -> string[]
Returns
the set of warnings to be suppressed
- Attributes
Remarks
The set of warnings that are to be suppressed by the compiler in the annotated element. Duplicate names are permitted. The second and successive occurrences of a name are ignored. The presence of unrecognized warning names is not an error: Compilers must ignore any warning names they do not recognize. They are, however, free to emit a warning if an annotation contains an unrecognized warning name.
The string "unchecked"
is used to suppress unchecked warnings. Compiler vendors should document the additional warning names they support in conjunction with this annotation type. They are encouraged to cooperate to ensure that the same names work across multiple compilers.
Java documentation for java.lang.SuppressWarnings.value()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.