EntityConnection.ServerVersion (Propiedad)
[Esta página es específica de la versión 6 de Entity Framework. La versión más reciente está disponible como el paquete NuGet de Entity Framework. Para más información sobre Entity Framework, consulte msdn.com/es-ES/data/ef].
Obtiene una cadena que contiene la versión del origen de datos al que está conectado el cliente.
Espacio de nombres: System.Data.Entity.Core.EntityClient
Ensamblado: EntityFramework (en EntityFramework.dll)
Sintaxis
'Declaración
<SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")> _
Public Overrides ReadOnly Property ServerVersion As String
Get
'Uso
Dim instance As EntityConnection
Dim value As String
value = instance.ServerVersion
[SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
public override string ServerVersion { get; }
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
public:
virtual property String^ ServerVersion {
String^ get () override;
}
[<SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")>]
abstract ServerVersion : string
[<SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")>]
override ServerVersion : string
override function get ServerVersion () : String
Valor de propiedad
Tipo: System.String
La versión del origen de datos contenido en la cadena de conexión del proveedor.