DomainMembership record

Namespace Runic.Platform.Administration.Windows.DirectoryServices in Runic.Platform.Administration.Windows 0.23.0

public sealed record DomainMembership : IEquatable<DomainMembership>

Inherits or implements IEquatable.

Machine join information; Name identifies either the domain or workgroup.

Parameters

State

The join state.

Name

The flat (NetBIOS) name of the domain or workgroup.

Role

The computer's role.

Constructors

DomainMembership

public DomainMembership(DomainJoinState State, string Name, ComputerDomainRole Role)

Machine join information; Name identifies either the domain or workgroup.

Parameters

State

The join state.

Name

The flat (NetBIOS) name of the domain or workgroup.

Role

The computer's role.

Properties

DnsDomainName

public string? DnsDomainName { get; init; }

The DNS name of the joined domain, read locally without contacting a controller; null for a workgroup or a domain without a DNS name.

ForestName

public string? ForestName { get; init; }

The DNS name of the joined domain's forest; null when DomainMembership.DnsDomainName is null.

Name

public string Name { get; init; }

The flat (NetBIOS) name of the domain or workgroup.

Role

public ComputerDomainRole Role { get; init; }

The computer's role.

State

public DomainJoinState State { get; init; }

The join state.