DiagnosticsInformation.AddAttribute(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds additional application specific attribute to the diagnostics information.
public:
void AddAttribute(System::String ^ attributeName, System::String ^ attributeValue);
public void AddAttribute (string attributeName, string attributeValue);
member this.AddAttribute : string * string -> unit
Public Sub AddAttribute (attributeName As String, attributeValue As String)
Parameters
- attributeName
- String
Name of the attribute. Cannot be null or empty.
- attributeValue
- String
Value of the attribute. Can be null.
Exceptions
Thrown when attributeName
is null.
Thrown when attributeName
or attributeValue
is invalid.