共用方式為


IVsDataProvider.DisplayName 屬性

取得 DDEX 提供者的顯示名稱。

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

語法

'宣告
ReadOnly Property DisplayName As String
string DisplayName { get; }
property String^ DisplayName {
    String^ get ();
}
abstract DisplayName : string
function get DisplayName () : String

屬性值

型別:System.String
DDEX 提供者的顯示名稱。

備註

DDEX 提供者的顯示名稱是以使用者的 DDEX 用戶端顯示的當地語系化字串。這個使用方式的範例在資料連接 [選擇資料來源] 對話方塊中, DDEX 資料來源和提供者是由使用者選取。

這個屬性會呼叫具有參數的 DisplayNameGetProperty 方法擷取字串資源 ID. 判斷顯示名稱。然後它會呼叫方法 GetString 擷取與這個資源 ID. 的當地語系化字串。如果資源不存在, Name 會傳回屬性的值。

「.NET Framework Data Provider for SQL Server」是值的範例會使用這個屬性的。

.NET Framework 安全性

請參閱

參考

IVsDataProvider 介面

Microsoft.VisualStudio.Data.Core 命名空間