共用方式為


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

See Also

Reference

TeamFoundationDataReader Class

Microsoft.TeamFoundation.Framework.Server Namespace