ResolutionParse(String, IFormat Provider) Method
Parses a string into a Resolution structure.
Definition
Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
The result of parsing s.
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
C#
public static Resolution Parse(
string s,
IFormatProvider? provider
)VB
Public Shared Function Parse (
s As String,
provider As IFormatProvider
) As ResolutionC++
public:
static Resolution Parse(
String^ s,
IFormatProvider^ provider
)F#
static member Parse :
s : string *
provider : IFormatProvider -> Resolution Parameters
- s String
- The string to parse.
- provider IFormatProvider
- An object that provides culture-specific formatting information about s.
Return Value
ResolutionThe result of parsing s.
Implements
IParsableTSelfParse(String, IFormatProvider)Remarks
Resolutions are represented as a string using the format "width,height". For example, "1920,1080" represents a resolution of 1920 by 1080 pixels.
Exceptions
| FormatException | s is not in the correct format. |