AtomicComposition.TryGetValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value saved by the SetValue(Object, Object) method.
Overloads
TryGetValue<T>(Object, T) |
Gets a value saved by the SetValue(Object, Object) method. |
TryGetValue<T>(Object, Boolean, T) |
Gets a value saved by the SetValue(Object, Object) method, with the option of not searching parent transactions. |
TryGetValue<T>(Object, T)
- Source:
- AtomicComposition.cs
- Source:
- AtomicComposition.cs
- Source:
- AtomicComposition.cs
- Source:
- AtomicComposition.cs
Gets a value saved by the SetValue(Object, Object) method.
public:
generic <typename T>
bool TryGetValue(System::Object ^ key, [Runtime::InteropServices::Out] T % value);
public bool TryGetValue<T> (object key, out T value);
member this.TryGetValue : obj * 'T -> bool
Public Function TryGetValue(Of T) (key As Object, ByRef value As T) As Boolean
Type Parameters
- T
The type of the value to be retrieved.
Parameters
- key
- Object
The key to retrieve from.
- value
- T
The retrieved value.
Returns
true
if the value was successfully retrieved; otherwise, false
.
Applies to
TryGetValue<T>(Object, Boolean, T)
- Source:
- AtomicComposition.cs
- Source:
- AtomicComposition.cs
- Source:
- AtomicComposition.cs
- Source:
- AtomicComposition.cs
Gets a value saved by the SetValue(Object, Object) method, with the option of not searching parent transactions.
public:
generic <typename T>
bool TryGetValue(System::Object ^ key, bool localAtomicCompositionOnly, [Runtime::InteropServices::Out] T % value);
public bool TryGetValue<T> (object key, bool localAtomicCompositionOnly, out T value);
member this.TryGetValue : obj * bool * 'T -> bool
Public Function TryGetValue(Of T) (key As Object, localAtomicCompositionOnly As Boolean, ByRef value As T) As Boolean
Type Parameters
- T
The type of the value to be retrieved.
Parameters
- key
- Object
The key to retrieve from.
- localAtomicCompositionOnly
- Boolean
true
to exclude parent transactions; otherwise, false
.
- value
- T
The retrieved value.
Returns
true
if the value was successfully retrieved; otherwise, false
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기