Diagnostic.Code Property
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.
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.