コード例 #1
0
            // Token: 0x06001364 RID: 4964 RVA: 0x000713D8 File Offset: 0x0006F5D8
            public TruncatedLinkOABProperty(PropTag propTag, OABPropertyFlags propFlags) : base(propTag, propFlags)
            {
                this.linkProperty = NspiPropMapper.GetPropertyDefinition(this.propTag);
                string text = this.linkProperty.Name + "-Placeholder";

                this.placeholderProperty = new ADPropertyDefinition(text, ExchangeObjectVersion.Exchange2003, typeof(bool), text, ADPropertyDefinitionFlags.None, false, PropertyDefinitionConstraint.None, PropertyDefinitionConstraint.None, null, null);
            }
コード例 #2
0
        // Token: 0x06001374 RID: 4980 RVA: 0x00071898 File Offset: 0x0006FA98
        private static void AddProperty(PropTag propTag, OABPropertyFlags flags, Dictionary <PropTag, OABPropertyFlags> properties)
        {
            OABPropertyFlags oabpropertyFlags;

            if (properties.TryGetValue(propTag, out oabpropertyFlags))
            {
                PropertyManager.Tracer.TraceDebug <PropTag, OABPropertyFlags, OABPropertyFlags>(0L, "PropertyManager.AddProperty: merging property={0} existing flags {1} with {2}", propTag, oabpropertyFlags, flags);
                flags |= oabpropertyFlags;
            }
            else
            {
                PropertyManager.Tracer.TraceDebug <PropTag, OABPropertyFlags>(0L, "PropertyManager.AddProperty: adding property={0}, flags={1}", propTag, flags);
            }
            properties[propTag] = flags;
        }
コード例 #3
0
 // Token: 0x06001373 RID: 4979 RVA: 0x0007183C File Offset: 0x0006FA3C
 private static void AddProperties(string description, IEnumerable <PropTag> propertiesToAdd, OABPropertyFlags flags, Dictionary <PropTag, OABPropertyFlags> properties)
 {
     PropertyManager.Tracer.TraceDebug <string>(0L, "PropertyManager.AddProperties: Adding {0}", description);
     foreach (PropTag propTag in propertiesToAdd)
     {
         PropertyManager.AddProperty(propTag, flags, properties);
     }
 }
コード例 #4
0
 // Token: 0x0600134C RID: 4940 RVA: 0x00070A84 File Offset: 0x0006EC84
 protected OABProperty(PropTag propTag, OABPropertyFlags propFlags)
 {
     this.propTag   = propTag;
     this.propFlags = propFlags;
 }
コード例 #5
0
 // Token: 0x06001368 RID: 4968 RVA: 0x000714ED File Offset: 0x0006F6ED
 public HABGroupMemberOABProperty(PropTag propTag, OABPropertyFlags propFlags) : base(propTag, propFlags)
 {
     this.isOrganizationalProperty = NspiPropMapper.GetPropertyDefinition((PropTag)2363293707U);
 }
コード例 #6
0
 // Token: 0x06001361 RID: 4961 RVA: 0x000711AC File Offset: 0x0006F3AC
 public X509CertificateProperty(PropTag propTag, OABPropertyFlags propFlags) : base(propTag, propFlags)
 {
 }
コード例 #7
0
 // Token: 0x0600135D RID: 4957 RVA: 0x00070D87 File Offset: 0x0006EF87
 public MultivaluedProperty(PropTag propTag, OABPropertyFlags propFlags) : base(propTag, propFlags)
 {
     this.propertyDefinition = NspiPropMapper.GetPropertyDefinition(this.propTag);
 }
コード例 #8
0
 // Token: 0x0600135A RID: 4954 RVA: 0x00070C89 File Offset: 0x0006EE89
 public TruncatedOABProperty(PropTag propTag, OABPropertyFlags propFlags) : base(propTag, propFlags)
 {
 }
コード例 #9
0
        // Token: 0x0600134B RID: 4939 RVA: 0x00070834 File Offset: 0x0006EA34
        public static OABProperty[] CreateOABPropertyList(Dictionary <PropTag, OABPropertyFlags> rawPropertyList)
        {
            OABProperty.Tracer.TraceFunction(0L, "OABProperty.CreateOABPropertyList");
            if (rawPropertyList.ContainsKey((PropTag)2363293707U))
            {
                OABProperty.Tracer.TraceDebug(0L, "HAB is enabled");
                if (!rawPropertyList.ContainsKey((PropTag)2148077598U))
                {
                    rawPropertyList[(PropTag)2148077598U] = OABPropertyFlags.Truncated;
                }
                if (!rawPropertyList.ContainsKey((PropTag)2148012062U))
                {
                    rawPropertyList[(PropTag)2148012062U] = OABPropertyFlags.Truncated;
                }
            }
            rawPropertyList.Remove(OABFilePropTags.TruncatedProperties);
            List <OABProperty> list = new List <OABProperty>(rawPropertyList.Count + 1);

            foreach (KeyValuePair <PropTag, OABPropertyFlags> keyValuePair in rawPropertyList)
            {
                PropTag          key   = keyValuePair.Key;
                OABPropertyFlags value = keyValuePair.Value;
                OABProperty.Tracer.TraceDebug <PropTag>(0L, "Adding PropTag {0}...", key);
                if (key == (PropTag)2355953922U)
                {
                    OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating ObjectGuidOABProperty for PropTag {0}...", key);
                    list.Add(new OABProperty.ObjectGuidOABProperty(key, value));
                }
                else if ((value & OABPropertyFlags.Truncated) != OABPropertyFlags.None)
                {
                    if (key == (PropTag)2148077598U || key == (PropTag)2148012062U)
                    {
                        OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating HABGroupMemberOABProperty for PropTag {0}...", key);
                        list.Add(new OABProperty.HABGroupMemberOABProperty(key, value));
                    }
                    else
                    {
                        PropertyDefinition propertyDefinition = NspiPropMapper.GetPropertyDefinition(key);
                        if (propertyDefinition != null && propertyDefinition.Type == typeof(ADObjectId))
                        {
                            OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating TruncatedLinkOABProperty for PropTag {0}...", key);
                            list.Add(new OABProperty.TruncatedLinkOABProperty(key, value));
                        }
                        else
                        {
                            OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating TruncatedOABProperty for PropTag {0}...", key);
                            list.Add(new OABProperty.TruncatedOABProperty(key, value));
                        }
                    }
                }
                else if (key == (PropTag)2355761410U)
                {
                    OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating X509CertificateProperty for PropTag {0}...", key);
                    list.Add(new OABProperty.X509CertificateProperty(key, value));
                }
                else if (key.IsMultiValued())
                {
                    OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating MultivaluedProperty for PropTag {0}...", key);
                    list.Add(new OABProperty.MultivaluedProperty(key, value));
                }
                else
                {
                    OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating OABProperty for PropTag {0}...", key);
                    list.Add(new OABProperty(key, value));
                }
            }
            list.Add(new OABProperty.TruncatedPropertiesOABProperty(OABFilePropTags.TruncatedProperties, OABPropertyFlags.None));
            return(list.ToArray());
        }
コード例 #10
0
 // Token: 0x06001354 RID: 4948 RVA: 0x00070BF1 File Offset: 0x0006EDF1
 public ObjectGuidOABProperty(PropTag propTag, OABPropertyFlags propFlags) : base(propTag, propFlags)
 {
 }