Use read-only properties inherited from the
When a Lync Control fails to initialize the connection to Lync 2010, the initialization state and error are stored in these properties on the control:
Property |
Description |
---|---|
|
Provides an enum value of type
|
|
Returns a Boolean value indicating whether initialization failed. |
|
Provides a string message describing the error. |
Code Example
Use the following XAML code to display Lync Control initialization errors at run time.
Copy Code | |
---|---|
<StackPanel> <TextBlock HorizontalAlignment="Right" Text="Application Initialization Failed:" /> <TextBox Text="{Binding InitializationFailed, ElementName=presence, Mode=OneWay}" /> <TextBlock HorizontalAlignment="Right" Text="Application Initialization Error:" /> <TextBox Text="{Binding InitializationErrorMessage.Message, ElementName=presence, Mode=OneWay}" /> <controls:PresenceIndicator Source="sip:elise@contoso.com" /> </StackPanel> |