DataConnectionProperties.GetProperty 方法

检索属性的类型与指定的属性的名称。

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

语法

声明
Protected Function GetProperty ( _
    name As String _
) As PropertyDescriptor
protected PropertyDescriptor GetProperty(
    string name
)
protected:
PropertyDescriptor^ GetProperty(
    String^ name
)
member GetProperty : 
        name:string -> PropertyDescriptor
protected function GetProperty(
    name : String
) : PropertyDescriptor

参数

  • name
    类型:String

    一个名称来检索属性描述符。

返回值

类型:PropertyDescriptor
一个属性的类型与指定属性名、nullnull 引用(在 Visual Basic 中为 Nothing),如果未找到具有指定名称的属性。

异常

异常 条件
ArgumentNullException

name 参数为 null。

.NET Framework 安全性

请参阅

参考

DataConnectionProperties 类

Microsoft.VisualStudio.Data.Framework 命名空间