public sealed record DomainMembership : IEquatable<DomainMembership> Machine join information; Name identifies either the domain or workgroup.
Parameters
StateThe join state.
NameThe flat (NetBIOS) name of the domain or workgroup.
RoleThe computer's role.
Constructors
DomainMembership
public DomainMembership(DomainJoinState State, string Name, ComputerDomainRole Role) Machine join information; Name identifies either the domain or workgroup.
Parameters
StateThe join state.
NameThe flat (NetBIOS) name of the domain or workgroup.
RoleThe 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.