共用方式為


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 加入指定的屬性 (Property) 並將特定物件執行個體,這個值表示參數 unretrieved 值。之後,就會使用這個屬性擷取屬性判斷時應該呼叫 RetrieveValue 方法。

.NET Framework 安全性

請參閱

參考

DataSourceInformation 類別

AddProperty 多載

Microsoft.VisualStudio.Data.Framework 命名空間

AddProperty