public AttributeRuleTriggers GetTriggeringEvents()
Public Function GetTriggeringEvents() As AttributeRuleTriggers
public AttributeRuleTriggers GetTriggeringEvents()
Public Function GetTriggeringEvents() As AttributeRuleTriggers
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
public void GetAttributeRules(Geodatabase geodatabase, string tableName) { using (TableDefinition tableDefinition = geodatabase.GetDefinition<TableDefinition>(tableName)) { // Get all attribute rule types IReadOnlyList<AttributeRuleDefinition> ruleDefinitions = tableDefinition.GetAttributeRules(); // Iterate rule definitions foreach (AttributeRuleDefinition ruleDefinition in ruleDefinitions) { AttributeRuleType ruleType = ruleDefinition.GetAttributeRuleType(); string ruleDescription = ruleDefinition.GetDescription(); bool isAttributeFieldEditable = ruleDefinition.GetIsFieldEditable(); string arcadeVersionToSupportRule = ruleDefinition.GetMinimumArcadeVersion(); int ruleEvaluationOrder = ruleDefinition.GetEvaluationOrder(); AttributeRuleTriggers triggeringEvents = ruleDefinition.GetTriggeringEvents(); string scriptExpression = ruleDefinition.GetScriptExpression(); // more properties } } }
Target Platforms: Windows 11, Windows 10