コード例 #1
0
        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));
            }
        }
コード例 #2
0
        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));
            }
        }
コード例 #3
0
        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));
            }
        }
コード例 #4
0
        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));
            }
        }