// Retrieves the name of the actual server that the DirectoryEntry is connected to static internal string GetServerName(DirectoryEntry de) { UnsafeNativeMethods.IAdsObjectOptions objOptions = (UnsafeNativeMethods.IAdsObjectOptions)de.NativeObject; return((string)objOptions.GetOption(0 /* == ADS_OPTION_SERVERNAME */)); }
internal static string GetServerName(DirectoryEntry de) { UnsafeNativeMethods.IAdsObjectOptions nativeObject = (UnsafeNativeMethods.IAdsObjectOptions)de.NativeObject; return((string)nativeObject.GetOption(0)); }