28 references to Forest
System.DirectoryServices (27)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchema.cs (4)
92
if ((context.ContextType != DirectoryContextType.
Forest
) &&
109
if (context.ContextType == DirectoryContextType.
Forest
)
146
if (context.ContextType == DirectoryContextType.
Forest
)
383
return ActiveDirectorySchema.GetSchema(new DirectoryContext(DirectoryContextType.
Forest
));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (2)
193
new DirectoryContext(DirectoryContextType.
Forest
);
215
DirectoryContext currentContext = Utils.GetNewDirectoryContext(forestName, DirectoryContextType.
Forest
, null);
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (8)
109
if (contextType != DirectoryContextType.Domain && contextType != DirectoryContextType.
Forest
)
140
if (contextType != DirectoryContextType.Domain && contextType != DirectoryContextType.
Forest
)
189
if ((contextType == DirectoryContextType.Domain) || ((contextType == DirectoryContextType.
Forest
) && (context.Name == null)))
246
else if (contextType == DirectoryContextType.
Forest
)
382
if (_contextType != DirectoryContextType.
Forest
)
387
_contextIsValid = IsContextValid(this, DirectoryContextType.
Forest
);
504
case DirectoryContextType.
Forest
:
511
if ((_name == null) || ((_contextType == DirectoryContextType.
Forest
) && (isCurrentForest())))
System\DirectoryServices\ActiveDirectory\Domain.cs (2)
831
DirectoryContext forestContext = Utils.GetNewDirectoryContext(forestName, DirectoryContextType.
Forest
, context);
1389
DirectoryContext tmpContext = Utils.GetNewDirectoryContext(context.Name, DirectoryContextType.
Forest
, context);
System\DirectoryServices\ActiveDirectory\Forest.cs (5)
95
if ((context.ContextType != DirectoryContextType.
Forest
) &&
111
if (context.ContextType == DirectoryContextType.
Forest
)
144
if (context.ContextType == DirectoryContextType.
Forest
)
485
DirectoryContext targetContext = Utils.GetNewDirectoryContext(targetForestName, DirectoryContextType.
Forest
, _context);
620
public static Forest GetCurrentForest() => GetForest(new DirectoryContext(DirectoryContextType.
Forest
));
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (6)
93
if (context.ContextType != DirectoryContextType.
Forest
)
105
if (context.ContextType != DirectoryContextType.
Forest
)
119
if (context.ContextType != DirectoryContextType.
Forest
)
131
if (context.ContextType != DirectoryContextType.
Forest
)
145
if (context.ContextType != DirectoryContextType.
Forest
)
160
if (context.ContextType != DirectoryContextType.
Forest
)
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
1192
Forest forest = Forest.GetForest(new DirectoryContext(DirectoryContextType.
Forest
, this.DnsForestName, this.credentials?.UserName, this.credentials?.Password));