DialogStateManager.GetValue<T>(String, Func<T>) 메서드
정의
경로 식을 사용 하 여 메모리에서 값을 가져옵니다 (참고: 항상 값의 복제본을 반환).Get the value from memory using path expression (NOTE: This always returns clone of value).
public T GetValue<T> (string pathExpression, Func<T> defaultValue = default);
member this.GetValue : string * Func<'T> -> 'T
Public Function GetValue(Of T) (pathExpression As String, Optional defaultValue As Func(Of T) = Nothing) As T
형식 매개 변수
- T
반환할 값 형식입니다.The value type to return.
매개 변수
- pathExpression
- String
사용할 경로 식입니다.Path expression to use.
- defaultValue
- Func<T>
값이 없는 경우 기본값을 제공 하는 함수입니다 (선택 사항).Function to give default value if there is none (OPTIONAL).
반환
- T
경로가 유효 하지 않은 경우 결과 또는 null입니다.Result or null if the path is not valid.
설명
항상 메모리의 복제본을 반환 합니다 .이 결과에 대 한 모든 수정 사항은 메모리에 영향을 주지 않습니다.This always returns a CLONE of the memory, any modifications to the result of this will not be affect memory.