I am trying to set the group type for a new Active Directory entry through VB.NET and DirectoryServices to create a distribution list.
How do I access ADS_GROUP_TYPE enumerations?
In particular, I am after ADS_GROUP_TYPE_GLOBAL_GROUP.
You are right, you cannot access transfers.
Oddly enough, this constant should not be an object, you can make it int32 -
Const ADS_GROUP_TYPE_GLOBAL_GROUP As Object = & H2
Add a link to com ActiveDS Dll and import the namespace using ActiveDS, after which you will get the above enumeration value.
I don’t think I can access the enumerations through .NET, so instead I created the specific constant that I needed. What is my code worth for:
Const ADS_GROUP_TYPE_GLOBAL_GROUP As Object = &H2 adNewGroup.Properties("groupType").Value = ADS_GROUP_TYPE_GLOBAL_GROUP
Refactoring is welcome!
Source: https://habr.com/ru/post/1696403/More articles:Install Visual Studio 2008 Sp1 on drive "D" - visual-studio-2008Приложение Delphi MDI и заголовок MDI Children - formsmod_rewrite for an alias of one type of file suffix for another - seoYUI proxy drag and drop - javascriptADO.NET and SQLServer connection pool - performanceWave file playback ends immediately (C ++, Windows) - c ++How to expand the project properties page? - visual-studio-2008Sending emails without spam - emailMootools: drag and drop problems - javascriptLooking for an algorithm that cancels the output of the sprintf () function - algorithmAll Articles