コード例 #1
0
 /// <summary>
 /// Creates a GuidId extended field URI for a distinguished property set id
 /// </summary>
 /// <param name="propertySet">DistinguishedPropertySetId</param>
 /// <param name="propId">dispatch Id</param>
 /// <param name="propType">Property type</param>
 /// <returns>PathToExtendedFieldType</returns>
 /// 
 public static PathToExtendedFieldType BuildGuidId(
                   DistinguishedPropertySetType propertySet,
                   int propId,
                   MapiPropertyTypeType propType)
 {
     PathToExtendedFieldType result = new PathToExtendedFieldType();
     result.PropertyId = propId;
     result.PropertyIdSpecified = true;
     result.DistinguishedPropertySetId = propertySet;
     result.DistinguishedPropertySetIdSpecified = true;
     result.PropertyType = propType;
     return result;
 }
コード例 #2
0
 /// <summary>
 /// Build a guid/name extended property path with DisinguishedPropertySetId
 /// </summary>
 /// <param name="propertySetId">DistinguishedPropertySetId</param>
 /// <param name="propertyName">Property Name</param>
 /// <param name="propertyType">Property Type</param>
 /// <returns>PathToExtendedFieldType</returns>
 /// 
 public static PathToExtendedFieldType BuildGuidName(
                      DistinguishedPropertySetType propertySetId,
                      string propertyName,
                      MapiPropertyTypeType propertyType)
 {
     PathToExtendedFieldType result = new PathToExtendedFieldType();
     result.DistinguishedPropertySetId = propertySetId;
     result.DistinguishedPropertySetIdSpecified = true;
     result.PropertyName = propertyName;
     result.PropertyType = propertyType;
     return result;
 }