示例#1
0
        internal static GuidIdPropertyDefinition InternalCreateCustom(string displayName, PropType mapiPropType, Guid propertyGuid, int dispId, PropertyFlags flags, NativeStorePropertyDefinition.TypeCheckingFlag typeCheckingFlag, params PropertyDefinitionConstraint[] constraints)
        {
            Type propertyType = InternalSchema.ClrTypeFromPropTagType(mapiPropType);

            return(GuidIdPropertyDefinition.InternalCreate(displayName, propertyType, mapiPropType, propertyGuid, dispId, flags | PropertyFlags.Custom, typeCheckingFlag, true, constraints));
        }
示例#2
0
        public static GuidIdPropertyDefinition CreateCustom(string displayName, Type propertyType, Guid propertyGuid, int dispId, PropertyFlags flags, params PropertyDefinitionConstraint[] constraints)
        {
            PropType mapiPropType = InternalSchema.PropTagTypeFromClrType(propertyType);

            return(GuidIdPropertyDefinition.InternalCreate(displayName, propertyType, mapiPropType, propertyGuid, dispId, flags | PropertyFlags.Custom, NativeStorePropertyDefinition.TypeCheckingFlag.ThrowOnInvalidType, true, constraints));
        }