API 설명서 > Windchill servers > Object ProServer > Function ProServerWorkspaceDelete
Function ProServerWorkspaceDelete
Description
Deletes a workspace.
Replacement in Object TOOLKIT:
Synopsis
#include <ProWTUtils.h>
ProServerWorkspaceDelete
(
wchar_t* server
/* (In)
The server on which the workspace to be deleted exists. Pass NULL to use the active server. This can be a alias or a server URL. Note: To delete any non-active WS: just delete it with this API. To delete a currently active WS: set the other workspace as active and delete the first workspace or unregister the primary server and delete the workspace using the server URL instead of alias
*/
wchar_t* ws_name
/* (In)
The workspace name.
*/
/* (Out)
The workspace could not be deleted. NULL if the error return != PRO_TK_CHECKOUT_CONFLICT. Pass NULL if not interested in conflicts details.
*/
)
Returns
The function succeeded.
One or more inputs was invalid.
The server is not registered.
The workspace does not exist.
The workspace cannot be deleted due to checked out objects in its contents.
The workspace is active
User Guide References
도움이 되셨나요?