TypeDescription.ContainsType

Syntax:

ContainsType(<Type>)

Parameters:

<Type> (required)

Type: Type.
The type to be checked.

Returned value:

Type: Boolean.
True then this type is used; otherwise False.

Description:

Determines whether the specified type is used by this object.

Availability:

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

Example:

CheckType = Type("String");
If 
AllowableTypes.ContainsType(CheckType) Then
    Message("Type description contains type - " + CheckType);
Else
    Message("Type description  doesn't contain type - " + CheckType);
EndIf
;


    

1C:Enterprise Developer's Community