Share via


Diagnostic.Code Property

Definition

Gets or sets the diagnostic's code, which usually appear in the user interface.

public:
 property System::String ^ Code { System::String ^ get(); void set(System::String ^ value); };
public:
 property Nullable<Microsoft::VisualStudio::LanguageServer::Protocol::SumType<int, System::String ^>> Code { Nullable<Microsoft::VisualStudio::LanguageServer::Protocol::SumType<int, System::String ^>> get(); void set(Nullable<Microsoft::VisualStudio::LanguageServer::Protocol::SumType<int, System::String ^>> value); };
[System.Runtime.Serialization.DataMember(Name="code")]
public string Code { get; set; }
[System.Runtime.Serialization.DataMember(Name="code")]
[Newtonsoft.Json.JsonProperty(NullValueHandling=Newtonsoft.Json.NullValueHandling.Ignore)]
public string Code { get; set; }
[System.Runtime.Serialization.DataMember(Name="code")]
[Newtonsoft.Json.JsonProperty(NullValueHandling=Newtonsoft.Json.NullValueHandling.Ignore)]
public Microsoft.VisualStudio.LanguageServer.Protocol.SumType<int,string>? Code { get; set; }
[<System.Runtime.Serialization.DataMember(Name="code")>]
member this.Code : string with get, set
[<System.Runtime.Serialization.DataMember(Name="code")>]
[<Newtonsoft.Json.JsonProperty(NullValueHandling=Newtonsoft.Json.NullValueHandling.Ignore)>]
member this.Code : string with get, set
[<System.Runtime.Serialization.DataMember(Name="code")>]
[<Newtonsoft.Json.JsonProperty(NullValueHandling=Newtonsoft.Json.NullValueHandling.Ignore)>]
member this.Code : Nullable<Microsoft.VisualStudio.LanguageServer.Protocol.SumType<int, string>> with get, set
Public Property Code As String
Public Property Code As Nullable(Of SumType(Of Integer, String))

Property Value

Attributes
DataMemberAttribute Newtonsoft.Json.JsonPropertyAttribute

Remarks

The value can be an Int32, String.

Applies to