c# Programming Glossary: de.properties
How to determine if user account is enabled or disabled http://stackoverflow.com/questions/2005637/how-to-determine-if-user-account-is-enabled-or-disabled ListViewItem lvi new ListViewItem string de.Properties SAMAccountName 0 lvi.Checked bool de.Properties AccountEnabled.. string de.Properties SAMAccountName 0 lvi.Checked bool de.Properties AccountEnabled lvwUsers.Items.Add lvi I'm struggling to find.. de if de.NativeGuid null return false int flags int de.Properties userAccountControl .Value if Convert.ToBoolean flags 0x0002..
How to get website's physical path on local IIS server? (from a desktop app) http://stackoverflow.com/questions/3228813/how-to-get-websites-physical-path-on-local-iis-server-from-a-desktop-app de new DirectoryEntry metabasePath Console.WriteLine de.Properties Path .Value Both these examples demonstrate how to discover..
How can I get a list of users from active directory? http://stackoverflow.com/questions/5162897/how-can-i-get-a-list-of-users-from-active-directory as DirectoryEntry Console.WriteLine First Name de.Properties givenName .Value Console.WriteLine Last Name de.Properties sn.. de.Properties givenName .Value Console.WriteLine Last Name de.Properties sn .Value Console.WriteLine SAM account name de.Properties samAccountName.. de.Properties sn .Value Console.WriteLine SAM account name de.Properties samAccountName .Value Console.WriteLine User principal name..
How to get the groups of a user in Active Directory? (c#, asp.net) http://stackoverflow.com/questions/5309988/how-to-get-the-groups-of-a-user-in-active-directory-c-asp-net as DirectoryEntry if de null if de.Properties.Contains department result de.Properties department 0 .ToString.. if de null if de.Properties.Contains department result de.Properties department 0 .ToString return result Update #2 seems shouldn't.. user.GetUnderlyingObject as DirectoryEntry if de null if de.Properties.Contains department result de.Properties department 0 .ToString..
How to copy value from class X to class Y with the same property name in c#? http://stackoverflow.com/questions/531505/how-to-copy-value-from-class-x-to-class-y-with-the-same-property-name-in-c
|