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
    类型:String

    数据源的信息的属性的名称。

异常

异常 条件
ArgumentNullException

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

备注

此方法调用将特定的属性和的 AddProperty 传递给定对象实例作为参数 unretrieved 值指示一个值。 以后使用,而将检索这属性确定时应当调用 RetrieveValue 方法。

.NET Framework 安全性

请参阅

参考

DataSourceInformation 类

AddProperty 重载

Microsoft.VisualStudio.Data.Framework 命名空间

AddProperty