DataSourceInformation.RetrieveValue 方法

检索一个指定数据源的信息属性的值。

命名空间:  Microsoft.VisualStudio.Data.Framework
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
Protected Overridable Function RetrieveValue ( _
    propertyName As String _
) As Object
protected virtual Object RetrieveValue(
    string propertyName
)
protected:
virtual Object^ RetrieveValue(
    String^ propertyName
)
abstract RetrieveValue : 
        propertyName:string -> Object 
override RetrieveValue : 
        propertyName:string -> Object 
protected function RetrieveValue(
    propertyName : String
) : Object

参数

  • propertyName
    类型:System.String
    要检索其值的属性的名称。

返回值

类型:System.Object
数据源信息属性的值或 nullnull 引用(在 Visual Basic 中为 Nothing),如果该属性不受支持。

异常

异常 条件
ArgumentNullException

propertyName 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。

备注

基类将检索到的一个缓存值,并且仅调用此方法一次个数据源属性的相关信息。因此,此方法的实现不需要缓存值自身。

对继承者的说明

此方法的基实现返回 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

DataSourceInformation 类

Microsoft.VisualStudio.Data.Framework 命名空间