public byte[] GetMessageBytesProperty(int rowIndex, PropertyName propertyName) { NamedTableContext tc = GetContentsTable(); int columnIndex = tc.FindColumnIndexByPropertyTag(propertyName, PropertyTypeName.PtypBinary); if (columnIndex >= 0) { return(tc.GetBytesProperty(rowIndex, columnIndex)); } else { return(GetMessage(rowIndex).PC.GetBytesProperty(propertyName)); } }
public Nullable <DateTime> GetMessageDateTimeProperty(int rowIndex, PropertyName propertyName) { NamedTableContext tc = GetContentsTable(); int columnIndex = tc.FindColumnIndexByPropertyTag(propertyName, PropertyTypeName.PtypTime); if (columnIndex >= 0) { return(tc.GetDateTimeProperty(rowIndex, columnIndex)); } else { return(GetMessage(rowIndex).PC.GetDateTimeProperty(propertyName)); } }
public string GetMessageStringProperty(int rowIndex, PropertyName propertyName) { NamedTableContext tc = GetContentsTable(); int columnIndex = tc.FindColumnIndexByPropertyTag(propertyName, PropertyTypeName.PtypString); if (columnIndex >= 0) { return(tc.GetStringProperty(rowIndex, columnIndex)); } else { return(GetMessage(rowIndex).PC.GetStringProperty(propertyName)); } }
public Nullable <bool> GetMessageBooleanProperty(int rowIndex, PropertyID propertyID) { NamedTableContext tc = GetContentsTable(); int columnIndex = tc.FindColumnIndexByPropertyTag(propertyID, PropertyTypeName.PtypBoolean); if (columnIndex >= 0) { return(tc.GetBooleanProperty(rowIndex, columnIndex)); } else { return(GetMessage(rowIndex).PC.GetBooleanProperty(propertyID)); } }