DataSourceInformation.RetrieveValue Method

Retrieves a value for a specified data source information property.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'宣言
Protected Overridable Function RetrieveValue ( _
    propertyName As String _
) As Object
'使用
Dim propertyName As String
Dim returnValue As Object

returnValue = Me.RetrieveValue(propertyName)
protected virtual Object RetrieveValue(
    string propertyName
)
protected:
virtual Object^ RetrieveValue(
    String^ propertyName
)
protected function RetrieveValue(
    propertyName : String
) : Object

Parameters

  • propertyName
    Type: System.String

    The name of the property whose value is to be retrieved.

Return Value

Type: System.Object

The value of the data source information property, or a null reference (Nothing in Visual Basic) if the property is not supported.

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is a null reference (Nothing in Visual Basic).

Remarks

The base class keeps a cache of values that have been retrieved, and therefore only calls this method once per data source information property. Thus, the implementation of this method need not cache values itself.

Notes to Inheritors:

The base implementation of this method returns a null reference (Nothing in Visual Basic).

Permissions

See Also

Reference

DataSourceInformation Class

DataSourceInformation Members

Microsoft.VisualStudio.Data.Framework Namespace