Udostępnij przez


IServerInformation.VersionMajor Property

Gets the portion of a component version identifier to the left of the first decimal point in the identifier. This property is not CLS-compliant.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
<DisplayNameKeyAttribute("Server_VersionMajorName")> _
<DisplayDescriptionKeyAttribute("Server_VersionMajorDesc")> _
ReadOnly Property VersionMajor As Integer
[DisplayNameKeyAttribute("Server_VersionMajorName")] 
[DisplayDescriptionKeyAttribute("Server_VersionMajorDesc")] 
int VersionMajor { get; }
[DisplayNameKeyAttribute(L"Server_VersionMajorName")] 
[DisplayDescriptionKeyAttribute(L"Server_VersionMajorDesc")] 
property int VersionMajor {
    int get ();
}
/** @property */
int get_VersionMajor ()
function get VersionMajor () : int

Property Value

Int32

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.