Table of Contents

Class ContactGroup

Namespace
Microsoft.Exchange.WebServices.Data
Assembly
Microsoft.Exchange.WebServices.dll

Represents a Contact Group. Properties available on contact groups are defined in the ContactGroupSchema class.

public class ContactGroup : Item
Inheritance
ContactGroup
Inherited Members

Constructors

ContactGroup(ExchangeService)

Initializes an unsaved local instance of the ContactGroup class.

public ContactGroup(ExchangeService service)

Parameters

service ExchangeService

EWS service to which this object belongs.

Properties

DisplayName

Gets or sets the display name of the contact group.

public string DisplayName { get; set; }

Property Value

string

FileAs

Gets the name under which this contact group is filed as.

public string FileAs { get; }

Property Value

string

Members

Gets the members of the contact group.

public GroupMemberCollection Members { get; }

Property Value

GroupMemberCollection

Methods

Bind(ExchangeService, ItemId)

Binds to an existing contact group and loads its first class properties. Calling this method results in a call to EWS.

public static ContactGroup Bind(ExchangeService service, ItemId id)

Parameters

service ExchangeService

The service to use to bind to the contact group.

id ItemId

The Id of the contact group to bind to.

Returns

ContactGroup

A ContactGroup instance representing the contact group corresponding to the specified Id.

Bind(ExchangeService, ItemId, PropertySet)

Binds to an existing contact group and loads the specified set of properties. Calling this method results in a call to EWS.

public static ContactGroup Bind(ExchangeService service, ItemId id, PropertySet propertySet)

Parameters

service ExchangeService

The service to use to bind to the contact group.

id ItemId

The Id of the contact group to bind to.

propertySet PropertySet

The set of properties to load.

Returns

ContactGroup

A ContactGroup instance representing the contact group corresponding to the specified Id.