PipeScheduleType.Create
Method
Description:
Creates a new pipe schedule type with the given name.
Creates a new pipe schedule type with the given name.
Remarks:
If the name is already taken by an existing schedule type, an InvalidOperationException will be thrown.
If the name is already taken by an existing schedule type, an InvalidOperationException will be thrown.
Parameters
Parameter | Type | Description |
---|---|---|
doc | Document | The document |
name | String | The name of requested schedule type. |
Return Value
Type | Description |
---|---|
PipeScheduleType | Returns the newly created schedule type. |
Exceptions
Exception | Condition |
---|---|
ArgumentException | name is an empty string. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | The name is already taken by an existing pipe schedule type. |