ContactCollection.TryGetContact Method

Gets the first ocurrence of a contact with the specified Uri. Returns true if the collection contains a contact with the specified Uri. Otherwise, false is returned.

Namespace:  Microsoft.Lync.Model.Group
Assembly:  Microsoft.Lync.Model (in Microsoft.Lync.Model.dll)

Syntax

'Declaration
Public Function TryGetContact ( _
    uri As String, _
    <OutAttribute> ByRef value As Contact _
) As Boolean
'Usage
Dim instance As ContactCollection
Dim uri As String
Dim value As Contact
Dim returnValue As Boolean

returnValue = instance.TryGetContact(uri, _
    value)
public bool TryGetContact(
    string uri,
    out Contact value
)

Parameters

Return Value

Type: System.Boolean

See Also

Reference

ContactCollection Class

ContactCollection Members

Microsoft.Lync.Model.Group Namespace