online source control
back to content
sign up free version control plan

SAWHSDK::shareProjectTo

Description

Shares all files in a project to another.

Syntax

int shareProjectTo(
        String
strProjectNewName,
        String strProjectShareTo,
        String strProjectShareFrom,
        boolean bBranchAfterShare,
        boolean bRecursive,
        String strComment,
        BaseDataObject bdobCanceled,
        BaseDataObject bdostrError
);

Parameters

strProjectNewName
[in] Specifies the new name of the project after the share.

strProjectShareTo
[in] Specifies the full name of the project to be shared to.

strProjectShareFrom
[in] Specifies the full name of the project to be shared from.

bBranchAfterShare
[in] Specifies whether to branch files in the shared project.

bRecursive
[in] Specifies whether to share the project recursively.

strComment
[in] Specifies the comment for the share action.

bdobCanceled
[out] If the method fails, returns whether the operation is canceled.

bdobstrError
[out] Returns the description of the result. If the operation succeeds, returns 'Completed'. If the operation fails, returns the error information.

Return Value

If the method succeeds, returns 0. If the method fails, returns other error codes.