Share via

EntityMetadata.ObjectTypeCode Property


Gets the entity type code.

 property Nullable<int> ObjectTypeCode { Nullable<int> get(); };
public int? ObjectTypeCode { get; }
member this.ObjectTypeCode : Nullable<int>
Public ReadOnly Property ObjectTypeCode As Nullable(Of Integer)

Property Value

The entity type code.



Always use the entity schema name (SchemaName) to refer to a custom entity in code and queries. Do not use the object type code (also referred to as entity type) code because tis integer value varies for custom entities in different organizations.

Applies to