Instance.InstanceConfigurationFileVersion Property
Gets or sets the version number of the instance configuration.
命名空間: Microsoft.SqlServer.Management.Nmo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
語法
'宣告
Public Property InstanceConfigurationFileVersion As Version
public Version InstanceConfigurationFileVersion { get; set; }
public:
property Version^ InstanceConfigurationFileVersion {
Version^ get ();
void set (Version^ value);
}
/** @property */
public Version get_InstanceConfigurationFileVersion ()
/** @property */
public void set_InstanceConfigurationFileVersion (Version value)
public function get InstanceConfigurationFileVersion () : Version
public function set InstanceConfigurationFileVersion (value : Version)
屬性值
A Version object specifying the instance configuration version.
備註
The InstanceConfigurationFileVersion property is optional.
Use the InstanceConfigurationFileVersion property if you want to specify which version of SQL Server Notification Services the instance configuration conforms to or to track the instance configuration version using your own version numbers.
When you first create the instance, if you do not specify a version number, Notification Services enters version 0.0.0.0 in the instance database. For subsequent updates, Notification Services uses the most recent version number, which it obtains from the database.
When you update the instance, Notification Services always enters the version number into the database regardless of any other changes in the ICF or application definition file (ADF). The updated version number must be equal to or greater than the previous version number.
範例
The following examples show how to define the instance configuration version:
myInstance.InstanceConfigurationFileVersion =
new Version(1, 0, 0, 0);
myInstance.InstanceConfigurationFileVersion = _
New Version(1, 0, 0, 0)
執行緒安全性
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.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
Instance Class
Instance Members
Microsoft.SqlServer.Management.Nmo Namespace