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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。