EntityConnection.ServerVersion プロパティ
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
クライアントが接続されているデータ ソースのバージョンを含む文字列を取得します。
名前空間: System.Data.Entity.Core.EntityClient
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
<SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")> _
Public Overrides ReadOnly Property ServerVersion As String
Get
'使用
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
プロパティ値
型 : System.String
プロバイダー接続文字列に含まれるデータ ソースのバージョン。