문서를 영문으로 보려면 영문 확인란을 선택하세요. 마우스 포인터를 텍스트 위로 이동시켜 팝업 창에서 영문 텍스트를 표시할 수도 있습니다.
번역
영문

Job.VersionNumber 속성

Gets a system-maintained value that is incremented every time the job is modified.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int VersionNumber { get; }

속성 값

유형: System.Int32
An Int32 value that specifies the number of times that the job has been modified.

Saving any change to the referenced job, or its steps and schedules, causes the VersionNumber property to be modified. Job versioning can be part of simple logic verifying correct versions for multiserver administration targets.

The following code example creates a job and displays the version number.

C#

Server srv = new Server("(local)");
Job jb = new Job(srv.JobServer, "Test Job");
jb.Create();
Console.WriteLine(jb.VersionNumber);

PowerShell

$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
$jb = new-object Microsoft.SqlServer.Management.Smo.Agent.Job($srv.JobServer, "Test Job")
$jb.Create()
Write-Host $jb.VersionNumber

커뮤니티 추가 항목

추가
표시: