EntityMetadata.ObjectTypeCode EntityMetadata.ObjectTypeCode EntityMetadata.ObjectTypeCode EntityMetadata.ObjectTypeCode Property

Definition

Gets the entity type code.

public:
 property Nullable<int> ObjectTypeCode { Nullable<int> get(); };
[System.Runtime.Serialization.DataMember]
public Nullable<int> ObjectTypeCode { get; }
member this.ObjectTypeCode : Nullable<int>
Public ReadOnly Property ObjectTypeCode As Nullable(Of Integer)

Property Value

Type: Nullable<Int32> The entity type code.

Remarks

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