DiagnosticsInformation.AddAttribute Method
Adds additional application specific attribute to the diagnostics information.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub AddAttribute ( _
attributeName As String, _
attributeValue As String _
)
'Usage
Dim instance As DiagnosticsInformation
Dim attributeName As String
Dim attributeValue As String
instance.AddAttribute(attributeName, _
attributeValue)
public void AddAttribute(
string attributeName,
string attributeValue
)
Parameters
- attributeName
Type: System.String
Name of the attribute. Cannot be null or empty.
- attributeValue
Type: System.String
Value of the attribute. Can be null.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when attributeName is null. |
ArgumentException | Thrown when attributeName or attributeValue is invalid. |