Retrieves an object instance representing the retrievable item as specified by name.
Namespace: Microsoft.VisualStudio.Data.AdoDotNet
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public Overrides Function GetItem ( _
name As String _
) As Object
'使用
Dim instance As AdoDotNetDataReader
Dim name As String
Dim returnValue As Object
returnValue = instance.GetItem(name)
public override Object GetItem(
string name
)
public:
virtual Object^ GetItem(
String^ name
) override
public override function GetItem(
name : String
) : Object
Parameters
name
Type: System.StringThe name of the data item in the current block to retrieve.
Return Value
Type: System.Object
Returns an object specified by name.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The name parameter is invalid. |
Permissions
- 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.