共用方式為


Add 方法

Adds an OperatorCategory object to the OperatorCategoryCollection collection.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub Add ( _
    operatorCategory As OperatorCategory _
)
'用途
Dim instance As OperatorCategoryCollection
Dim operatorCategory As OperatorCategory

instance.Add(operatorCategory)
public void Add(
    OperatorCategory operatorCategory
)
public:
void Add(
    OperatorCategory^ operatorCategory
)
member Add : 
        operatorCategory:OperatorCategory -> unit 
public function Add(
    operatorCategory : OperatorCategory
)

範例

使用集合