The value for parameter colorspaceNumber can be retrieved from the AddColorSpace method.
See the SetColorSpaceType method for examples.