ConstantsManager.CreateSet
Syntax variant: By string
Syntax:
Parameters:
<ConstantsSet> (required)
A string that contains names of constants, separated by commas, that are managed by a created object.
If a string is empty, an object can be used to manage all constants.
Syntax variant: By array
Syntax:
Parameters:
<ConstantsSet> (optional)
An array of values that contains name strings for constants and (or) values corresponding to constants of the MetadataObject: HTTPService, MetadataObject: ExternalDataSource, MetadataObject: Field, MetadataObject: Table, MetadataObject: Function, MetadataObject: HTTPServiceURLTemplate, MetadataObject: DefinedType, MetadataObject: ChartOfCalculationTypes, MetadataObject: ChartOfAccounts, MetadataObject: BusinessProcess, MetadataObject: Document, MetadataObject: DocumentJournal, MetadataObject: Task, MetadataObject: ChartOfCharacteristicTypes, MetadataObject: ExchangePlan, MetadataObject: AccountingRegister, MetadataObject: AccumulationRegister, MetadataObject: CalculationRegister, MetadataObject: InformationRegister, MetadataObject: Catalog, MetadataObject: FunctionalOption, MetadataObject: FunctionalOptionsParameter, MetadataObject: Command, MetadataObject: CommandGroup, MetadataObject: SettingsStorage, MetadataObject: CommonCommand, MetadataObject: WebService, MetadataObject: WSReference, MetadataObject: Interface, MetadataObject: Constant, MetadataObject: FilterCriterion, MetadataObject: DocumentNumerator, MetadataObject: DataProcessor, MetadataObject: CommonPicture, MetadataObject: Template, MetadataObject: CommonModule, MetadataObject: Form, MetadataObject: Style, MetadataObject: Language, MetadataObject: Report, MetadataObject: XDTOPackage, MetadataObject: SessionParameter, MetadataObject: Enum, MetadataObject: EventSubscription, MetadataObject: Subsystem, MetadataObject: Sequence, MetadataObject: ScheduledJob, MetadataObject: Role, MetadataObject: StyleItem, MetadataObject: Graph, MetadataObject: Dimension, MetadataObject: EnumValue, MetadataObject: WebServiceOperation, MetadataObject: Recalculation, MetadataObject: WebServiceParameter, MetadataObject: AccountingFlag, MetadataObject: ExtDimensionAccountingFlag, MetadataObject: Attribute, MetadataObject: TabularSection, MetadataObject: Resource, MetadataObject: AddressingAttribute, MetadataObject: CommonAttribute, MetadataObject: Cube, MetadataObject: DimensionTable type. This list defines a set of constants that are managed by a created object.
If a parameter is not specified, an object can be used to manage all constants.
Default value: Am empty array.
Returned value:
Description:
Availability:
Example:
// Create a set by string ConstantsSet = Constants.CreateSet("Director,Bokkeeper"); // Create a set by array ConstsArray = New Array; ConstsArray.Add(Metadata.Constants.Director); ConstsArray.Add(Metadata.Constants.Bookkeeper ); ConstantsSet = Constants.CreateSet(ConstsArray); |