Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Job.CategoryType Property

Gets or sets the type of category, with respect to local or multiserver jobs.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)]
public byte CategoryType { get; set; }

Property Value

Type: System.Byte
A Byte value that specifies the job category type.

The job category type is a byte value that is determined by the CategoryTypeCategoryType enumeration.

The following code example specifies that the job is local.

C#

Job jb = new Job();
jb.CategoryType = CategoryType.LocalJob;

PowerShell

$jb = new-object Microsoft.SqlServer.Management.Smo.Agent.Job
$jb.CategoryType = [Microsoft.SqlServer.Management.Smo.Agent.CategoryType]::LocalJob
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.