DataSourceInformation.AddProperty 方法 (String)

将属性添加到支持的属性列表。

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

语法

声明
Protected Sub AddProperty ( _
    propertyName As String _
)
protected void AddProperty(
    string propertyName
)
protected:
void AddProperty(
    String^ propertyName
)
member AddProperty : 
        propertyName:string -> unit 
protected function AddProperty(
    propertyName : String
)

参数

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

异常

异常 条件
ArgumentNullException

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

备注

此方法调用 AddProperty 添加给定的属性并通过给定对象实例,值参数指示一个unretrieved值。之后使用方法,当检索属性确定时应调用 RetrieveValue 方法。

.NET Framework 安全性

请参见

参考

DataSourceInformation 类

AddProperty 重载

Microsoft.VisualStudio.Data.Framework 命名空间

AddProperty