System.TimeSpan.TTimeSpan.TryParse
Delphi
class function TryParse(const S: string; out Value: TTimeSpan): Boolean; static;
C++
static bool __fastcall TryParse(const System::UnicodeString S, /* out */ TTimeSpan &Value);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.TimeSpan.pas System.TimeSpan.hpp |
System.TimeSpan | TTimeSpan |
説明
文字列を TTimeSpan オブジェクトに変換します。
TryParse メソッドは、S パラメータを通して指定された文字列値を出力パラメータ Value で指定される TTimeSpan オブジェクトに変換します。 TryParse は、変換が成功すれば True を返し、失敗すると False を返します。