CreateFolder Method
- Last UpdatedNov 06, 2025
- 2 minute read
The CreateFolder() method opens the Create Folder dialog to allow the user to create a new folder. An item ID, operation ID, operation description, entity ID, and version ID can be passed in as suggestions for the user, but the user can change any or all of these.
'Declaration
Public Shared Function CreateFolder( _
ByVal itemID As String, _
ByVal operID As String, _
ByVal operDesc As String, _
ByVal entID As Object, _
ByVal verID As String, _
ByRef newItemClassID As String, _
ByRef newItemClassDesc As String, _
ByRef newItemID As String, _
ByRef newItemDesc As String, _
ByRef newOperID As String, _
ByRef newOperDesc As String, _
ByRef newEntID As Integer, _
ByRef newEntName As String, _
ByRef newVerID As String, _
ByRef newPrefVer As Boolean _
) As Boolean
public static bool CreateFolder(
string itemID,
string operID,
string operDesc,
object entID,
string verID,
out string newItemClassID,
out string newItemClassDesc,
out string newItemID,
out string newItemDesc,
out string newOperID,
out string newOperDesc,
out int newEntID,
out string newEntName,
out string newVerID,
out bool newPrefVer
)
Parameters
- itemID
- Optional. Holds the suggested item ID; pass null for no suggestion.
- operID
- Optional. Holds the suggested operation ID; pass null for no suggestion.
- operDesc
- Optional. Holds the suggested operation description; pass null for no suggestion.
- entID
- Optional. Holds the suggested entity ID; pass null for no suggestion.
- verID
- Optional. Holds the suggested version ID, pass null for no suggestion.
- newItemClassID
- Output. Holds the item class ID of the new folder, or an empty string if a folder is not created.
- newItemClassDesc
- Output. Holds the item class description of the new folder, or an empty string if a folder is not created.
- newItemID
- Output. Holds the item ID of the new folder, or an empty string if a folder is not created.
- newItemDesc
- Output. Holds the item description of the new folder, or an empty string if a folder is not created.
- newOperID
- Output. Holds the operation ID of the new folder, or an empty string if a folder is not created.
- newOperDesc
- Output. Holds the operation description of the new folder, or an empty string if a folder is not created.
- newEntID
- Output. Holds the entity ID of the new folder, or -1 if a folder is not created.
- newEntName
- Output. Holds the entity name of the new folder, or an empty string if a folder is not created.
- newVerID
- Output. Holds the version ID of the new folder, or an empty string if a folder is not created.
- newPrefVer
- Output. Holds the preferred version flag setting of the new folder, or a false if a folder is not created.
Return Value
Returns true if the user successfully creates a folder, or false if the user
cancels creating the folder.