You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Specifies the status of a computer's membership in a workgroup or domain.
5
+
/// </summary>
6
+
/// <remarks>This enumeration is typically used to indicate whether a computer is joined to a domain, a
7
+
/// workgroup, or is unjoined. The values correspond to the possible states returned by network management APIs when
8
+
/// querying the join status of a system.</remarks>
9
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1008:Enums should have zero value",Justification="There is no zero value in the Win32 API for this.")]
10
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Naming","CA1707:Identifiers should not contain underscores",Justification="This is named as per the Win32 API.")]
/// Represents the domain or workgroup join status of a computer, including the associated domain or workgroup name
7
+
/// if applicable.
8
+
/// </summary>
9
+
/// <remarks>Use this type to determine whether a computer is joined to a domain, a workgroup, or is
10
+
/// unjoined, and to retrieve the corresponding domain or workgroup name when available. This record is
11
+
/// immutable.</remarks>
12
+
publicsealedrecordDomainStatus
13
+
{
14
+
/// <summary>
15
+
/// Initializes a new instance of the DomainStatus class with the specified join status and domain or workgroup
16
+
/// name.
17
+
/// </summary>
18
+
/// <param name="joinStatus">The status indicating whether the computer is joined to a domain, a workgroup, or is unjoined.</param>
19
+
/// <param name="domainOrWorkgroupName">The name of the domain or workgroup associated with the current join status, or null if not applicable.</param>
0 commit comments