Class ExtendedPropertyDefinition
- Namespace
- Microsoft.Exchange.WebServices.Data
- Assembly
- Microsoft.Exchange.WebServices.dll
Represents the definition of an extended property.
public sealed class ExtendedPropertyDefinition : PropertyDefinitionBase- Inheritance
- 
      
      
      ExtendedPropertyDefinition
- Inherited Members
Constructors
ExtendedPropertyDefinition(DefaultExtendedPropertySet, int, MapiPropertyType)
Initializes a new instance of ExtendedPropertyDefinition.
public ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, int id, MapiPropertyType mapiType)Parameters
- propertySetDefaultExtendedPropertySet
- The property set of the extended property. 
- idint
- The Id of the extended property. 
- mapiTypeMapiPropertyType
- The MAPI type of the extended property. 
ExtendedPropertyDefinition(DefaultExtendedPropertySet, string, MapiPropertyType)
Initializes a new instance of the ExtendedPropertyDefinition class.
public ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, string name, MapiPropertyType mapiType)Parameters
- propertySetDefaultExtendedPropertySet
- The extended property set of the extended property. 
- namestring
- The name of the extended property. 
- mapiTypeMapiPropertyType
- The MAPI type of the extended property. 
ExtendedPropertyDefinition(Guid, int, MapiPropertyType)
Initializes a new instance of the ExtendedPropertyDefinition class.
public ExtendedPropertyDefinition(Guid propertySetId, int id, MapiPropertyType mapiType)Parameters
- propertySetIdGuid
- The property set Id of the extended property. 
- idint
- The Id of the extended property. 
- mapiTypeMapiPropertyType
- The MAPI type of the extended property. 
ExtendedPropertyDefinition(Guid, string, MapiPropertyType)
Initializes a new instance of the ExtendedPropertyDefinition class.
public ExtendedPropertyDefinition(Guid propertySetId, string name, MapiPropertyType mapiType)Parameters
- propertySetIdGuid
- The property set Id of the extended property. 
- namestring
- The name of the extended property. 
- mapiTypeMapiPropertyType
- The MAPI type of the extended property. 
ExtendedPropertyDefinition(int, MapiPropertyType)
Initializes a new instance of the ExtendedPropertyDefinition class.
public ExtendedPropertyDefinition(int tag, MapiPropertyType mapiType)Parameters
- tagint
- The tag of the extended property. 
- mapiTypeMapiPropertyType
- The MAPI type of the extended property. 
Properties
Id
Gets the Id of the extended property.
public int? Id { get; }Property Value
- int?
MapiType
Gets the MAPI type of the extended property.
public MapiPropertyType MapiType { get; }Property Value
Name
Gets the name of the extended property.
public string Name { get; }Property Value
PropertySet
Gets the property set of the extended property.
public DefaultExtendedPropertySet? PropertySet { get; }Property Value
PropertySetId
Gets the property set Id or the extended property.
public Guid? PropertySetId { get; }Property Value
- Guid?
Tag
Gets the extended property's tag.
public int? Tag { get; }Property Value
- int?
Type
Gets the property type.
public override Type Type { get; }Property Value
Version
Gets the minimum Exchange version that supports this extended property.
public override ExchangeVersion Version { get; }Property Value
- ExchangeVersion
- The version. 
Methods
Equals(object)
Determines whether a given extended property definition is equal to this extended property definition.
public override bool Equals(object obj)Parameters
- objobject
- The object to check for equality. 
Returns
- bool
- True if the properties definitions define the same extended property. 
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()Returns
GetJsonType()
Gets the type for json.
protected override string GetJsonType()Returns
Operators
operator ==(ExtendedPropertyDefinition, ExtendedPropertyDefinition)
Determines whether two specified instances of ExtendedPropertyDefinition are equal.
public static bool operator ==(ExtendedPropertyDefinition extPropDef1, ExtendedPropertyDefinition extPropDef2)Parameters
- extPropDef1ExtendedPropertyDefinition
- First extended property definition. 
- extPropDef2ExtendedPropertyDefinition
- Second extended property definition. 
Returns
- bool
- True if extended property definitions are equal. 
operator !=(ExtendedPropertyDefinition, ExtendedPropertyDefinition)
Determines whether two specified instances of ExtendedPropertyDefinition are not equal.
public static bool operator !=(ExtendedPropertyDefinition extPropDef1, ExtendedPropertyDefinition extPropDef2)Parameters
- extPropDef1ExtendedPropertyDefinition
- First extended property definition. 
- extPropDef2ExtendedPropertyDefinition
- Second extended property definition. 
Returns
- bool
- True if extended property definitions are equal.