Delen via


ProjectId Class

Definition

An identifier that can be used to refer to the same Project across versions.

public ref class ProjectId sealed : IEquatable<Microsoft::CodeAnalysis::ProjectId ^>
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")]
public sealed class ProjectId : IEquatable<Microsoft.CodeAnalysis.ProjectId>
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")]
[System.Runtime.Serialization.DataContract]
public sealed class ProjectId : IComparable<Microsoft.CodeAnalysis.ProjectId>, IEquatable<Microsoft.CodeAnalysis.ProjectId>
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")]
[System.Runtime.Serialization.DataContract]
public sealed class ProjectId : IEquatable<Microsoft.CodeAnalysis.ProjectId>
[<System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")>]
type ProjectId = class
    interface IEquatable<ProjectId>
[<System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")>]
[<System.Runtime.Serialization.DataContract>]
type ProjectId = class
    interface IEquatable<ProjectId>
    interface IComparable<ProjectId>
[<System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")>]
[<System.Runtime.Serialization.DataContract>]
type ProjectId = class
    interface IEquatable<ProjectId>
Public NotInheritable Class ProjectId
Implements IEquatable(Of ProjectId)
Public NotInheritable Class ProjectId
Implements IComparable(Of ProjectId), IEquatable(Of ProjectId)
Inheritance
ProjectId
Attributes
Implements

Remarks

This supports the general message-pack DataContractAttribute of being serializable. However, in practice, this is not serialized directly, but through the use of a custom formatter Microsoft.CodeAnalysis.Remote.MessagePackFormatters.ProjectIdFormatter

Properties

Id

The system generated unique id.

Methods

CreateFromSerialized(Guid, String)
CreateNewId(String)

Create a new ProjectId instance.

Equals(Object)
Equals(ProjectId)
GetHashCode()
ToString()

Operators

Equality(ProjectId, ProjectId)
Inequality(ProjectId, ProjectId)

Explicit Interface Implementations

IComparable<ProjectId>.CompareTo(ProjectId)

Applies to