TryParse 메서드
소스 보기TryParse(string, out DeviceVariable)
문자열을 디바이스 변수로 해석 시도합니다.
선언
public static bool TryParse(string text, out DeviceVariable deviceVariable)
매개 변수
형식 | 이름 | 설명 |
---|---|---|
string | text | 문자열 |
DeviceVariable | deviceVariable | 디바이스 변수 |
반환
형식 | 설명 |
---|---|
bool | 성공 여부 |
TryParse(string, bool, out DeviceVariable)
문자열을 디바이스 변수로 해석 시도합니다.
선언
public static bool TryParse(string text, bool useHexBitIndex, out DeviceVariable deviceVariable)
매개 변수
형식 | 이름 | 설명 |
---|---|---|
string | text | 문자열 |
bool | useHexBitIndex | 비트 변수의 인덱스를 16진수로 인식할지 여부를 결정합니다. |
DeviceVariable | deviceVariable | 디바이스 변수 |
반환
형식 | 설명 |
---|---|
bool | 성공 여부 |