AdoDotNetConnectionProperties.ICustomTypeDescriptor.GetComponentName 方法
擷取指定物件的名稱。
命名空間: Microsoft.VisualStudio.Data.Framework.AdoDotNet
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.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 不支援明確介面實作。
傳回值
型別:System.String
物件的名稱,如果物件沒有名稱,則為 nullNull 參照 (即 Visual Basic 中的 Nothing)。
實作
ICustomTypeDescriptor.GetComponentName()
備註
當方法傳回 nullNull 參照 (即 Visual Basic 中的 Nothing)時,請使用預設名稱。
這個方法 GetComponentName 提供方法的實作。 如需詳細資訊,請參閱 .NET Framework 類別庫 (Class Library GetComponentName 方法。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。