TeamFoundationDataReader.Current<T> Method
Gets the current strongly-typed object in the reader.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function Current(Of T) As T
public T Current<T>()
public:
generic<typename T>
T Current()
member Current : unit -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
The type of the result
Return Value
Type: T
The current object, strongly-typed.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | If there are no more results left in the reader |
InvalidCastException | If the current object in the reader is not an instance of the given type. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.