DataSource.GetProperty 方法 (String)

检索数据源属性存储在数据源注册项,按名称指定属性。

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

语法

声明
Public Function GetProperty ( _
    name As String _
) As Object
public Object GetProperty(
    string name
)
public:
Object^ GetProperty(
    String^ name
)
member GetProperty : 
        name:string -> Object 
public function GetProperty(
    name : String
) : Object

参数

返回值

类型:System.Object
返回通过名称指定的属性。

异常

异常 条件
ArgumentNullException

name 参数为 null。

.NET Framework 安全性

请参见

参考

DataSource 类

GetProperty 重载

Microsoft.VisualStudio.Data 命名空间

GetProperty