XDTOFactory.Create

Syntax variant: Create value from value

Syntax:

Create(<Type>, <Value>)

Parameters:

<Type> (required)

Type: XDTOValueType.
A type whose value should be created.

<Value> (required)

Type: Arbitrary.
A random value used as a basis to create XDTO value.

Description of method variant:

Creates an XDTO value by custom value.

Syntax variant: Create value by lexical presentation

Syntax:

Create(<Type>, <String>)

Parameters:

<Type> (required)

Type: XDTOValueType.
A type whose value should be created.

<String> (required)

Type: String.
Lexical value presentation.

Description of method variant:

Creates an XDTO value by lexical value presentation. Lexical value presentation should meet constraints defined by this XDTO value type.

Syntax variant: Object creation

Syntax:

Create(<Type>)

Parameters:

<Type> (required)

Type: XDTOObjectType.
A type whose object should be created.

Description of method variant:

It creates an XDTO object of the specified type.
Besides, the method will return a value of the XDTODataObject type.

Returned value:

Type: XDTODataValue.

Description:

Creates XDTO value.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

    

1C:Enterprise Developer's Community