AdoDotNetDataSourceInformation.RetrieveValue 方法

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

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

语法

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

参数

  • propertyName
    类型:System.String
    数据源信息属性的名称。

返回值

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

异常

异常 条件
ArgumentNullException

propertyName 参数为 null。

备注

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

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

.NET Framework 安全性

请参见

参考

AdoDotNetDataSourceInformation 类

Microsoft.VisualStudio.Data.AdoDotNet 命名空间