Share via


ContactBase.Source Property

Specifies a contact or distribution group to which this control should be bound.

Namespace:  Microsoft.Lync.Controls
Assembly:  Microsoft.Lync.Controls (in Microsoft.Lync.Controls.dll)

Syntax

public Object Source { get; set; }

Remarks

Valid values for this property include:

Type Value
string Search fragment, such as mary
string SIP URI, such as sip:mary@contoso.com
Contact Microsoft.Lync.Model.Contact object, obtained using the Lync Platform API.
DistributionGroup Microsoft.Lync.Model.Group.DistributionGroup object, obtained using the Lync Platform API.

These options are shown in increasing order of performance. If a search fragment is used, the control will perform a best-effort match (non-deterministic)

Exceptions

Exception Condition
System.ArgumentException Thrown when an invalid object type is provided.

See Also

ContactBase Class

Microsoft.Lync.Controls Namespace