Add 方法
將 JobCategory 物件加入至 JobCategoryCollection 集合。
命名空間: Microsoft.SqlServer.Management.Smo.Agent
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub Add ( _
jobCategory As JobCategory _
)
'用途
Dim instance As JobCategoryCollection
Dim jobCategory As JobCategory
instance.Add(jobCategory)
public void Add(
JobCategory jobCategory
)
public:
void Add(
JobCategory^ jobCategory
)
member Add :
jobCategory:JobCategory -> unit
public function Add(
jobCategory : JobCategory
)
參數
- jobCategory
型別:Microsoft.SqlServer.Management.Smo.Agent. . :: . .JobCategory
JobCategory 物件,可指定要從 JobCategoryCollection 集合中移除的作業類別目錄。