DiagnosticsInformation Constructor (Int32, String, String, DiagnosticVisibility)
Creates an instance of Diagnostics Information with given diagnostics details.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
errorCode As Integer, _
reason As String, _
description As String, _
diagnosticVisibility As DiagnosticVisibility _
)
'Usage
Dim errorCode As Integer
Dim reason As String
Dim description As String
Dim diagnosticVisibility As DiagnosticVisibility
Dim instance As New DiagnosticsInformation(errorCode, _
reason, description, diagnosticVisibility)
public DiagnosticsInformation(
int errorCode,
string reason,
string description,
DiagnosticVisibility diagnosticVisibility
)
Parameters
- errorCode
Type: System.Int32
Diagnostic error code.
- reason
Type: System.String
Reason of the diagnostics information.
- description
Type: System.String
Optional description of the diagnostics information.
- diagnosticVisibility
Type: Microsoft.Rtc.Signaling.DiagnosticVisibility
Diagnostics visibility.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when errorCode is out of range. |
ArgumentException | Thrown when reason is null or empty. |
See Also
Reference
DiagnosticsInformation Members