API Reference
Class
GpoLink
Represents a link to a GPO.
Inheritance
- Object
- GpoLink
Constructors
public GpoLink(String distinguishedName, String canonicalName, String objectClass, Boolean enabled, Boolean enforced, GpoLinkStatus status, String gpoDomainDistinguishedName, Int32 order, Boolean inheritanceBlocked = false, Int32 gpOptions = 0) #Initializes a new instance of the GpoLink class.
Parameters
- distinguishedName System.String
- Distinguished name of the linked object.
- canonicalName System.String
- Canonical name of the linked object.
- objectClass System.String
- Object class of the linked object.
- enabled System.Boolean
- Indicates whether the link is enabled.
- enforced System.Boolean
- Indicates whether the link is enforced.
- status ADPlayground.Gpo.GpoLinkStatus
- State of the link.
- gpoDomainDistinguishedName System.String
- Distinguished name of the GPO's domain.
- order System.Int32
- Order of the link within the gPLink value.
- inheritanceBlocked System.Boolean = false
- Indicates whether Block Inheritance is set on the container.
- gpOptions System.Int32 = 0
- Raw gpOptions value read from the container where the link resides.
Inherited Methods
Properties
public String DistinguishedName { get; } #Distinguished name of the linked object.
public String CanonicalName { get; } #Canonical name of the linked object.
public String ObjectClass { get; } #Object class of the linked object.
public Boolean Enabled { get; } #Indicates whether the link is enabled.
public Boolean Enforced { get; } #Indicates whether the link is enforced.
public String GpoDomainDistinguishedName { get; } #Distinguished name of the GPO's domain.
public Int32 Order { get; } #Order of the link within the gPLink value.
public GpoLinkTargetType TargetType { get; } #Type of object the GPO is linked to.
public Boolean IsCrossDomain { get; } #Indicates whether the link references a GPO from another domain.
public Boolean InheritanceBlocked { get; } #Indicates whether the container has Block Inheritance (gpOptions bit 1).
public Int32 GpOptions { get; } #Raw gpOptions value from the container where the link is present.
public String LinkScope { get; } #Human‑readable link scope (Domain/Site/OU/Container).