コード例 #1
0
 // 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 */));
 }
コード例 #2
0
 internal static string GetServerName(DirectoryEntry de)
 {
     UnsafeNativeMethods.IAdsObjectOptions nativeObject = (UnsafeNativeMethods.IAdsObjectOptions)de.NativeObject;
     return((string)nativeObject.GetOption(0));
 }