Desktop version

Main > Knowledge Base > 1C:Enterprise documentation > Add-in Development Technology > Creating add-ins with COM technology > COM interfaces of 1C:Enterprise > Saving add-in object parameters > 1C:Enterprise documentation > Add-in Development Technology > Creating add-ins with COM technology > COM interfaces of 1C:Enterprise > Saving add-in object parameters > 1C:Enterprise documentation > Add-in Development Technology > Creating add-ins with COM technology > COM interfaces of 1C:Enterprise > Saving add-in object parameters

Saving add-in object parameters

To save parameters, an add-in object can utilize 1C:Enterprise data saving algorithms by using the IPropertyProfile interface. This interface inherits from the IPropertyBag interface (a standard COM interface), with a single method difference:

RegisterProfileAs

Description:

Registers the list of add-in parameters with name bstrProfileName.

When saving or loading parameters, you can represent them as a tree. For that purpose, in the Read() and Write() methods, provide parameter names in the following format: Node1\Node2\...\NodeN\ParameterName:DefaultParameterValue. The parameters are stored in the profile that corresponds to the current computer - Infobase - user combination.

Syntax:

HRESULT RegisterProfileAs(BSTR bstrProfileName);

Parameters:

bstrProfileName

Type: BSTR. Name of the list of add-in parameters.

Return value:

Next page: Notification messages about object states




© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.