Share via


DurationHelper.GetHasTimeSpan(Duration) 메서드

정의

지정된 Duration의 구성 요소에 TimeSpan null이 아닌 값이 있는지 여부를 반환합니다. C# 및 Microsoft Visual Basic 코드는 Duration.HasTimeSpan 을 대신 사용해야 합니다.

 static bool GetHasTimeSpan(Duration const& target);
public static bool GetHasTimeSpan(Duration target);
function getHasTimeSpan(target)
Public Shared Function GetHasTimeSpan (target As Duration) As Boolean

매개 변수

target
Duration

평가할 기간 값입니다.

반환

Boolean

bool

제공된 TimeSpan기간의 구성 요소가 null이 아니면 true이고, 그렇지 않으면 false입니다.

설명

이 메서드가 false를 반환하는 경우 Duration 은 초기화되지 않았거나 Automatic 또는 Forever의 특수 값 중 하나를 보유합니다.

적용 대상