共用方式為


DataConnectionProperties.ICustomTypeDescriptor.GetDefaultProperty 方法

擷取指定物件的預設屬性。

命名空間:  Microsoft.VisualStudio.Data
組件:  Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)

語法

'宣告
Private Function GetDefaultProperty As PropertyDescriptor
    Implements ICustomTypeDescriptor.GetDefaultProperty
PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty()
private:
virtual PropertyDescriptor^ GetDefaultProperty() sealed = ICustomTypeDescriptor::GetDefaultProperty
private abstract GetDefaultProperty : unit -> PropertyDescriptor 
private override GetDefaultProperty : unit -> PropertyDescriptor 
JScript 不支援明確介面實作。

傳回值

型別:System.ComponentModel.PropertyDescriptor
如果這個物件沒有屬性,傳回表示這個物件的 PropertyDescriptor 預設屬性則傳回 nullNull 參照 (即 Visual Basic 中的 Nothing) 。

實作

ICustomTypeDescriptor.GetDefaultProperty()

備註

這個方法 GetDefaultProperty 提供方法的實作。如需詳細資訊 .NET Framework 在類別庫中看到 GetDefaultProperty 方法。

.NET Framework 安全性

請參閱

參考

DataConnectionProperties 類別

Microsoft.VisualStudio.Data 命名空間