EntityMetadata.ObjectTypeCode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the entity type code.
public:
property Nullable<int> ObjectTypeCode { Nullable<int> get(); };
[System.Runtime.Serialization.DataMember]
public int? ObjectTypeCode { get; }
[<System.Runtime.Serialization.DataMember>]
member this.ObjectTypeCode : Nullable<int>
Public ReadOnly Property ObjectTypeCode As Nullable(Of Integer)
Property Value
The entity type code.
- Attributes
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.