获取DDEX数据源的属性。
命名空间: Microsoft.VisualStudio.Data.Core
程序集: Microsoft.VisualStudio.Data.Core(在 Microsoft.VisualStudio.Data.Core.dll 中)
语法
声明
Function GetProperty ( _
name As String _
) As Object
Object GetProperty(
string name
)
Object^ GetProperty(
String^ name
)
abstract GetProperty :
name:string -> Object
function GetProperty(
name : String
) : Object
参数
- name
类型:System.String
要检索的属性的名称。
返回值
类型:System.Object
属性的值,则为;如果存在;否则,nullnull 引用(在 Visual Basic 中为 Nothing)。
异常
异常 | 条件 |
---|---|
ArgumentNullException | name 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
备注
GetProperty 方法的此方法委托,通过 Empty 提供程序作为参数的值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。