Example #1
0
        public static string BuildSetFieldRawValueXml(EwsFieldUri fieldUri, string value, EwsAttributes attributes = null)
        {
            var definition = GetPropertyDefinition(fieldUri);

            string xml = definition.BuildSetFieldValueXml(new [] { value }, attributes);

            return(xml);
        }
Example #2
0
        public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, string[] values, EwsAttributes attributes = null)
        {
            var definition = GetPropertyDefinition(fieldUri);

            string xml = definition.BuildSetFieldValueXml(values.Select(v => v.ToEscapedXml()).ToArray(), attributes);

            return(xml);
        }
Example #3
0
        public static EwsPropertyDefinition GetPropertyDefinition(EwsFieldUri field)
        {
            var definition = definitions.FirstOrDefault(d => d.FieldUri == field);

            if (definition == null)
            {
                throw new NotSupportedException("Definition does not exists");
            }

            return(definition);
        }
Example #4
0
 public static string BuildUpdateFieldValueXml(EwsFieldUri fieldUri, string value, EwsAttributes attributes = null)
 {
     return(BuildUpdateFieldValueXml(fieldUri, new[] { value.ToEscapedXml() }, attributes));
 }
Example #5
0
 public static string BuildUpdateFieldValueXml(EwsFieldUri fieldUri, EwsImportance value)
 {
     return(BuildUpdateFieldValueXml(fieldUri, new[] { GetString(value) }));
 }
Example #6
0
 public static string BuildUpdateFieldValueXml(EwsFieldUri fieldUri, EwsTaskStatus status)
 {
     return(BuildUpdateFieldValueXml(fieldUri, new[] { GetString(status) }));
 }
Example #7
0
 public static string BuildUpdateFieldValueXml(EwsFieldUri fieldUri, DateTime value, DateTimeKind kind)
 {
     return(BuildUpdateFieldValueXml(fieldUri, new[] { GetString(value, kind) }));
 }
Example #8
0
 public static string BuildUpdateFieldValueXml(EwsFieldUri fieldUri, bool value, bool useTrueFalse = true)
 {
     return(BuildUpdateFieldValueXml(fieldUri, new[] { GetString(value, useTrueFalse) }));
 }
Example #9
0
 protected EwsPropertyDefinition(EwsFieldUri fieldUri)
 {
     this.fieldUri = fieldUri;
 }
 internal EwsExtendedPropertyDefinition(EwsFieldUri fieldUri, string propertySetId, int propertyId, EwsFieldType fieldType)
     : base(fieldUri, propertyId, fieldType)
 {
     this.PropertySetId = propertySetId;
 }
Example #11
0
 public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, EwsImportance value)
 {
     return(BuildSetFieldValueXml(fieldUri, GetString(value)));
 }
Example #12
0
 public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, EwsTaskStatus value)
 {
     return(BuildSetFieldValueXml(fieldUri, GetString(value)));
 }
Example #13
0
 public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, DateTime value, DateTimeKind kind)
 {
     return(BuildSetFieldValueXml(fieldUri, GetString(value, kind)));
 }
Example #14
0
 public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, bool value)
 {
     return(BuildSetFieldValueXml(fieldUri, GetString(value)));
 }
Example #15
0
        public static string BuildClearFieldValueXml(EwsFieldUri fieldUri)
        {
            var definition = GetPropertyDefinition(fieldUri);

            return(definition.BuildClearFieldXml());
        }
Example #16
0
 internal EwsDistinguishedPropertyDefinition(EwsFieldUri fieldUri, int propertyId, EwsFieldType fieldType)
     : base(fieldUri)
 {
     this.propertyId   = propertyId;
     this.PropertyType = fieldType;
 }
Example #17
0
 public static string BuildSetFieldValueXml(EwsFieldUri fieldUri, string value, EwsAttributes attributes = null)
 {
     return(BuildSetFieldValueXml(fieldUri, new[] { value }, attributes));
 }
 public EwsSimpleArrayPropertyDefinition(EwsFieldUri fieldUri) : base(fieldUri)
 {
 }
 public EwsSimplePropertyDefinition(EwsFieldUri fieldUri, string type = "Item") : base(fieldUri)
 {
     this.type = type;
 }