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 の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示