TextStudioBindingDiagnostic
public readonly struct TextStudioBindingDiagnosticNon-spamming runtime state surfaced by the binding authoring UI.
Fields
Section titled “Fields”
public static readonly TextStudioBindingDiagnostic NoneReturns
TextStudio.TextStudioBindingDiagnostic
Constructors
Section titled “Constructors”
TextStudioBindingDiagnostic(TextStudioBindingDiagnosticCode, string)
Section titled “TextStudioBindingDiagnostic(TextStudioBindingDiagnosticCode, string)”public TextStudioBindingDiagnostic(TextStudioBindingDiagnosticCode code, string message)Creates a diagnostic with a stable category and customer-facing message.
Parameters
| Name | Type |
|---|---|
code |
TextStudio.TextStudioBindingDiagnosticCode |
message |
System.String |
Methods
Section titled “Methods”
Equals(TextStudioBindingDiagnostic)
Section titled “Equals(TextStudioBindingDiagnostic)”public bool Equals(TextStudioBindingDiagnostic other)Parameters
| Name | Type |
|---|---|
other |
TextStudio.TextStudioBindingDiagnostic |
Returns
System.Boolean
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters
| Name | Type |
|---|---|
obj |
System.Object |
Returns
System.Boolean
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns
System.Int32
Operators
Section titled “Operators”
operator ==(TextStudioBindingDiagnostic, TextStudioBindingDiagnostic)
Section titled “operator ==(TextStudioBindingDiagnostic, TextStudioBindingDiagnostic)”public static bool operator ==(TextStudioBindingDiagnostic left, TextStudioBindingDiagnostic right)Returns whether two diagnostics have the same category and message.
Parameters
| Name | Type |
|---|---|
left |
TextStudio.TextStudioBindingDiagnostic |
right |
TextStudio.TextStudioBindingDiagnostic |
Returns
System.Boolean
operator !=(TextStudioBindingDiagnostic, TextStudioBindingDiagnostic)
Section titled “operator !=(TextStudioBindingDiagnostic, TextStudioBindingDiagnostic)”public static bool operator !=(TextStudioBindingDiagnostic left, TextStudioBindingDiagnostic right)Returns whether two diagnostics differ in category or message.
Parameters
| Name | Type |
|---|---|
left |
TextStudio.TextStudioBindingDiagnostic |
right |
TextStudio.TextStudioBindingDiagnostic |
Returns
System.Boolean
Properties
Section titled “Properties”
public TextStudioBindingDiagnosticCode Code { get; }Returns
TextStudio.TextStudioBindingDiagnosticCode
Message
Section titled “Message”public string Message { get; }Returns
System.String
IsError
Section titled “IsError”public bool IsError { get; }Returns
System.Boolean