Share via


Activity.TryGetChannelData<TypeT>(TypeT) Method

Definition

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.

Implements

Applies to

See also