VersionInfo.GetInstance 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.
Overloads
GetInstance(Int32) |
Returns an instance of VersionInfo with the argument version. |
GetInstance(String) |
Returns an instance of VersionInfo with the argument version. |
GetInstance(Int32, Int32) |
Returns an instance of VersionInfo with the argument version. |
GetInstance(Int32, Int32, Int32) |
Returns an instance of VersionInfo with the argument version. |
GetInstance(Int32, Int32, Int32, Int32) |
Returns an instance of VersionInfo with the argument version. |
GetInstance(Int32)
Returns an instance of VersionInfo with the argument version.
[Android.Runtime.Register("getInstance", "(I)Landroid/icu/util/VersionInfo;", "", ApiSince=24)]
public static Android.Icu.Util.VersionInfo? GetInstance (int major);
[<Android.Runtime.Register("getInstance", "(I)Landroid/icu/util/VersionInfo;", "", ApiSince=24)>]
static member GetInstance : int -> Android.Icu.Util.VersionInfo
Parameters
- major
- Int32
major version, non-negative number <= 255.
Returns
- Attributes
Remarks
Returns an instance of VersionInfo with the argument version. Equivalent to getInstance(major, 0, 0, 0).
Java documentation for android.icu.util.VersionInfo.getInstance(int)
.
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.
Applies to
GetInstance(String)
Returns an instance of VersionInfo with the argument version.
[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Landroid/icu/util/VersionInfo;", "", ApiSince=24)]
public static Android.Icu.Util.VersionInfo? GetInstance (string? version);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Landroid/icu/util/VersionInfo;", "", ApiSince=24)>]
static member GetInstance : string -> Android.Icu.Util.VersionInfo
Parameters
- version
- String
version String in the format of "major.minor.milli.micro" or "major.minor.milli" or "major.minor" or "major", where major, minor, milli, micro are non-negative numbers <= 255. If the trailing version numbers are not specified they are taken as 0s. E.g. Version "3.1" is equivalent to "3.1.0.0".
Returns
an instance of VersionInfo with the argument version.
- Attributes
Remarks
Returns an instance of VersionInfo with the argument version.
Java documentation for android.icu.util.VersionInfo.getInstance(java.lang.String)
.
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.
Applies to
GetInstance(Int32, Int32)
Returns an instance of VersionInfo with the argument version.
[Android.Runtime.Register("getInstance", "(II)Landroid/icu/util/VersionInfo;", "", ApiSince=24)]
public static Android.Icu.Util.VersionInfo? GetInstance (int major, int minor);
[<Android.Runtime.Register("getInstance", "(II)Landroid/icu/util/VersionInfo;", "", ApiSince=24)>]
static member GetInstance : int * int -> Android.Icu.Util.VersionInfo
Parameters
- major
- Int32
major version, non-negative number <= 255.
- minor
- Int32
minor version, non-negative number <= 255.
Returns
- Attributes
Remarks
Returns an instance of VersionInfo with the argument version. Equivalent to getInstance(major, minor, 0, 0).
Java documentation for android.icu.util.VersionInfo.getInstance(int, int)
.
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.
Applies to
GetInstance(Int32, Int32, Int32)
Returns an instance of VersionInfo with the argument version.
[Android.Runtime.Register("getInstance", "(III)Landroid/icu/util/VersionInfo;", "", ApiSince=24)]
public static Android.Icu.Util.VersionInfo? GetInstance (int major, int minor, int milli);
[<Android.Runtime.Register("getInstance", "(III)Landroid/icu/util/VersionInfo;", "", ApiSince=24)>]
static member GetInstance : int * int * int -> Android.Icu.Util.VersionInfo
Parameters
- major
- Int32
major version, non-negative number <= 255.
- minor
- Int32
minor version, non-negative number <= 255.
- milli
- Int32
milli version, non-negative number <= 255.
Returns
- Attributes
Remarks
Returns an instance of VersionInfo with the argument version. Equivalent to getInstance(major, minor, milli, 0).
Java documentation for android.icu.util.VersionInfo.getInstance(int, int, int)
.
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.
Applies to
GetInstance(Int32, Int32, Int32, Int32)
Returns an instance of VersionInfo with the argument version.
[Android.Runtime.Register("getInstance", "(IIII)Landroid/icu/util/VersionInfo;", "", ApiSince=24)]
public static Android.Icu.Util.VersionInfo? GetInstance (int major, int minor, int milli, int micro);
[<Android.Runtime.Register("getInstance", "(IIII)Landroid/icu/util/VersionInfo;", "", ApiSince=24)>]
static member GetInstance : int * int * int * int -> Android.Icu.Util.VersionInfo
Parameters
- major
- Int32
major version, non-negative number <= 255.
- minor
- Int32
minor version, non-negative number <= 255.
- milli
- Int32
milli version, non-negative number <= 255.
- micro
- Int32
micro version, non-negative number <= 255.
Returns
- Attributes
Remarks
Returns an instance of VersionInfo with the argument version.
Java documentation for android.icu.util.VersionInfo.getInstance(int, int, int, int)
.
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.