How to add a property to objects

Unofficial Content

 


 

public override void PostInitialize()
{
      string propDefinitionKey = Artech.Genexus.Common.Helpers.KBObjectHelper.GetPropertyDefinitionKey(Artech.Genexus.Common.ObjClass.Table);

 PropertiesDefinition myProperties = new PropertiesDefinition(propDefinitionKey);
     myProperties.AddDefinition("PropertyName", typeof(string), "defaultValue", new Attribute[] { System.ComponentModel.BrowsableAttribute.Yes });
base.AddPropertiesDefinition(propDefinitionKey, myProperties);
base.PostInitialize();

}