ContactCard.PhotoUri Property
Gets or sets the uri indicating the web url of the photo.
Namespace: Microsoft.Rtc.Collaboration.Presence
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Property PhotoUri As String
Get
Set
'Usage
Dim instance As ContactCard
Dim value As String
value = instance.PhotoUri
instance.PhotoUri = value
public string PhotoUri { get; set; }
Property Value
Type: System.String
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the value is an invalid web address. |
Remarks
Applications are advised to provide a valid web address and ensure that the photo size is within limitations otherwise Microsoft Lync 2010 may not honor it. The photo size limit recommended can be obtained by the "MaxPhotoSizeKb" property in Microsoft.Rtc.Collaboration.Presence.ProvisioningData.EndpointConfiguration.Properties.