Table of Contents

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

propertySet DefaultExtendedPropertySet

The property set of the extended property.

id int

The Id of the extended property.

mapiType MapiPropertyType

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

propertySet DefaultExtendedPropertySet

The extended property set of the extended property.

name string

The name of the extended property.

mapiType MapiPropertyType

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

propertySetId Guid

The property set Id of the extended property.

id int

The Id of the extended property.

mapiType MapiPropertyType

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

propertySetId Guid

The property set Id of the extended property.

name string

The name of the extended property.

mapiType MapiPropertyType

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

tag int

The tag of the extended property.

mapiType MapiPropertyType

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

MapiPropertyType

Name

Gets the name of the extended property.

public string Name { get; }

Property Value

string

PropertySet

Gets the property set of the extended property.

public DefaultExtendedPropertySet? PropertySet { get; }

Property Value

DefaultExtendedPropertySet?

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

Type

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

obj object

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

int

A hash code for the current object.

GetJsonType()

Gets the type for json.

protected override string GetJsonType()

Returns

string

Operators

operator ==(ExtendedPropertyDefinition, ExtendedPropertyDefinition)

Determines whether two specified instances of ExtendedPropertyDefinition are equal.

public static bool operator ==(ExtendedPropertyDefinition extPropDef1, ExtendedPropertyDefinition extPropDef2)

Parameters

extPropDef1 ExtendedPropertyDefinition

First extended property definition.

extPropDef2 ExtendedPropertyDefinition

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

extPropDef1 ExtendedPropertyDefinition

First extended property definition.

extPropDef2 ExtendedPropertyDefinition

Second extended property definition.

Returns

bool

True if extended property definitions are equal.