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
ExchangeServiceEWS 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
FileAs
Gets the name under which this contact group is filed as.
public string FileAs { get; }
Property Value
Members
Gets the members of the contact group.
public GroupMemberCollection Members { get; }
Property Value
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
ExchangeServiceThe service to use to bind to the contact group.
id
ItemIdThe 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
ExchangeServiceThe service to use to bind to the contact group.
id
ItemIdThe Id of the contact group to bind to.
propertySet
PropertySetThe set of properties to load.
Returns
- ContactGroup
A ContactGroup instance representing the contact group corresponding to the specified Id.