Activity.TryGetChannelData<TypeT>(TypeT) 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 the channel data for this activity as a strongly-typed object. A return value idicates whether the operation succeeded.
public bool TryGetChannelData<TypeT> (out TypeT instance);
abstract member TryGetChannelData : 'ypeT -> bool
override this.TryGetChannelData : 'ypeT -> bool
Public Function TryGetChannelData(Of TypeT) (ByRef instance As TypeT) As Boolean
Type Parameters
- TypeT
The type of the object to return.
Parameters
- instance
- TypeT
When this method returns, contains the strongly-typed object if the operation succeeded, or the type's default value if the operation failed.
Returns
true
if the operation succeeded; otherwise, false
.