共用方式為


DataConnectionProperties.ICustomTypeDescriptor.GetComponentName 方法

擷取指定物件的名稱。

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

語法

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

傳回值

類型:String
如果物件沒有名稱,傳回物件的名稱或 nullnull 參考 (即 Visual Basic 中的 Nothing) 。

實作

ICustomTypeDescriptor.GetComponentName

備註

在方法傳回 nullnull 參考 (即 Visual Basic 中的 Nothing)處理,請使用預設名稱。

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

.NET Framework 安全性

請參閱

參考

DataConnectionProperties 類別

Microsoft.VisualStudio.Data 命名空間