Compartir a través de


IVsDataSource.Description (Propiedad)

获取 DDEX 数据源的基本描述。

Espacio de nombres:  Microsoft.VisualStudio.Data.Core
Ensamblado:  Microsoft.VisualStudio.Data.Core (en Microsoft.VisualStudio.Data.Core.dll)

Sintaxis

'Declaración
ReadOnly Property Description As String
string Description { get; }
property String^ Description {
    String^ get ();
}
abstract Description : string with get
function get Description () : String

Valor de propiedad

Tipo: String
DDEX 数据源的基本描述。

Comentarios

DDEX 数据源的说明是最终用户的 DDEX 客户显示的已本地化字符串。 这种情况的一个例子。数据连接 选择数据源 对话框时,DDEX 数据源及提供程序用户选择。

此属性返回的基本描述只介绍 DDEX 数据源。 附加说明,可以通过调用 GetDescription 方法将返回,DDEX 提供合并数据源和支持的特定提供程序的说明。

此属性通过调用 GetProperty 方法确定基本的说明,将支持提供程序的默认 (如果有) 和一个参数 SourceDescription,检索字符串资源 ID. 如果失败,的属性通过支持提供程序开始循环访问查询,每个的属性,直到非 Null 返回值。 然后调用 GetString 方法以检索与 . 资源 ID 的本地化字符串。 如果资源不存在,则返回 nullreferencia null (Nothing en Visual Basic)。

此属性的示例值可能为“使用此数据源连接到 SQL Server 2000 和 SQL Server 2005”。

Seguridad de .NET Framework

Vea también

Referencia

IVsDataSource Interfaz

Microsoft.VisualStudio.Data.Core (Espacio de nombres)