ExternalResponse.DataIs 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.
Overloads
| Name | Description |
|---|---|
| DataIs<TValue>() |
Determines whether the underlying data is of the specified type. |
| DataIs<TValue>(TValue) |
Determines whether the underlying data can be retrieved as the specified type. |
DataIs<TValue>()
Determines whether the underlying data is of the specified type.
public bool DataIs<TValue>();
member this.DataIs : unit -> bool
Public Function DataIs(Of TValue) () As Boolean
Type Parameters
- TValue
The type to compare with the underlying data.
Returns
true if the underlying data is of type TValue; otherwise, false.
Applies to
DataIs<TValue>(TValue)
Determines whether the underlying data can be retrieved as the specified type.
public bool DataIs<TValue>(out TValue? value);
member this.DataIs : 'Value -> bool
Public Function DataIs(Of TValue) (ByRef value As TValue) As Boolean
Type Parameters
- TValue
The type to which the underlying data is to be cast if available.
Parameters
- value
- TValue
When this method returns, contains the value of type TValue if the data is
available and compatible.
Returns
true if the data is present and can be cast to TValue; otherwise, false.