ServerOperations.ProcessCommandShelve
Moderator: SourceGear
ServerOperations.ProcessCommandShelve
Hello, I was hoping someone could provide an example of how to use the ServerOperations.ProcessCommandShelve. Specifically, I don't know how to create the ShelvesetItemIDEInfo array that's passed to the ProcessComandShelve method. Any help that could be provided on this would be much appreciated.
Re: ServerOperations.ProcessCommandShelve
First see ServerOperations.cs ProcessCommandShelve() for an explanation of the arguments.
Next, one calls ServerOperations.ProcessCommandShelve( name="the name of the shelve set",
csic = an allocated ChangeSetItemColl collection which contains the items you want to include in the shelve. Normally you can get this by using something like "ChangeSetItemColl csic = ci.InternalChangeSet_GetItems(true);" You can see this code elsewhere in ServerOperations.cs
"comment" is the comment for the shelveset,
bugIDS = null OR it can be an array of int for VaultPro work item ids,
ideInfos = null,
localCopy = LocalCopyType.Leave, (in most instances)
replace = true if you wish to replace an existing shelveset with the same name );
Next, one calls ServerOperations.ProcessCommandShelve( name="the name of the shelve set",
csic = an allocated ChangeSetItemColl collection which contains the items you want to include in the shelve. Normally you can get this by using something like "ChangeSetItemColl csic = ci.InternalChangeSet_GetItems(true);" You can see this code elsewhere in ServerOperations.cs
"comment" is the comment for the shelveset,
bugIDS = null OR it can be an array of int for VaultPro work item ids,
ideInfos = null,
localCopy = LocalCopyType.Leave, (in most instances)
replace = true if you wish to replace an existing shelveset with the same name );
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support