473,394 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

NotImplementedException when I use IADsContainer.Count

I'm getting NotImplementedException when I tried to get the Count property
from the IContianer object iconComputers. What does this error mean? How
can I correct this problem? Thanks.
//deGlobalComputers is a DirectoryEntry .
IADsContainer iconComputers =
(IADsContainer)deGlobalComputers.NativeObject;
IADsContainer iconUsers =
(IADsContainer)deGlobalComputers.NativeObject;
IADsContainer iconGroups =
(IADsContainer)deGlobalComputers.NativeObject;
iconComputers.Filter = new object[] {"meeting"};
int numOfComputers = iconComputers.Count;
--
Thanks.
Jul 22 '06 #1
2 3189
Hi Pucca,

This could be the issue (pay attention to the last line):

The enumeration processes under IADsContainer::get__NewEnum and IADsContainer::get_Count are performed against the contained objects
in the cache. When a container contains a large number of objects, the performance may be affected. To enhance performance, turn off
the cache, set up an appropriate page size, and use the IDirectorySearch interface. For this reason, the get_Count property is not
supported in the Microsoft LDAP provider.

Source Page on MSDN:
http://msdn.microsoft.com/library/de...ty_methods.asp

--
Dave Sexton

"Pucca" <Pu***@discussions.microsoft.comwrote in message news:AF**********************************@microsof t.com...
I'm getting NotImplementedException when I tried to get the Count property
from the IContianer object iconComputers. What does this error mean? How
can I correct this problem? Thanks.
//deGlobalComputers is a DirectoryEntry .
IADsContainer iconComputers =
(IADsContainer)deGlobalComputers.NativeObject;
IADsContainer iconUsers =
(IADsContainer)deGlobalComputers.NativeObject;
IADsContainer iconGroups =
(IADsContainer)deGlobalComputers.NativeObject;
iconComputers.Filter = new object[] {"meeting"};
int numOfComputers = iconComputers.Count;
--
Thanks.

Jul 22 '06 #2
Thnak you.
--
Thanks.
"Dave Sexton" wrote:
Hi Pucca,

This could be the issue (pay attention to the last line):

The enumeration processes under IADsContainer::get__NewEnum and IADsContainer::get_Count are performed against the contained objects
in the cache. When a container contains a large number of objects, the performance may be affected. To enhance performance, turn off
the cache, set up an appropriate page size, and use the IDirectorySearch interface. For this reason, the get_Count property is not
supported in the Microsoft LDAP provider.

Source Page on MSDN:
http://msdn.microsoft.com/library/de...ty_methods.asp

--
Dave Sexton

"Pucca" <Pu***@discussions.microsoft.comwrote in message news:AF**********************************@microsof t.com...
I'm getting NotImplementedException when I tried to get the Count property
from the IContianer object iconComputers. What does this error mean? How
can I correct this problem? Thanks.
//deGlobalComputers is a DirectoryEntry .
IADsContainer iconComputers =
(IADsContainer)deGlobalComputers.NativeObject;
IADsContainer iconUsers =
(IADsContainer)deGlobalComputers.NativeObject;
IADsContainer iconGroups =
(IADsContainer)deGlobalComputers.NativeObject;
iconComputers.Filter = new object[] {"meeting"};
int numOfComputers = iconComputers.Count;
--
Thanks.


Jul 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kong Li | last post by:
Follow up to this thread, the latest Oracle 9i release 2 patchset (9.2.0.5) fixed the handle count leak problem. The problem is in Oracle client component. Thanks. Kong ----- From: Kong...
5
by: DaaaDaaa | last post by:
Hi, Here's what I'd like to do: table (Orders) has fields of Processed, Paid (both of boolean yes|no) etc, I want to return a count of of Total number of Orders, Number of Processed vs. Number...
13
by: Jan | last post by:
Hi I have a database that I use to keep track of the sales promotions that we send to companies. I normally send a mailing based on a subset of the companies in the database (found using the...
4
by: m96 | last post by:
hi, i'm trying to make a query to a ldap server (version v2 or v3 doen't matter) with c#. the query works just fine but the problem is that i can't read the custom attributes/fields, since .net...
8
by: Invalidlastname | last post by:
Hi, We are developing an asp.net application, and we dynamically created certain literal controls to represent some read-only text for certain editable controls. However, recently we found an issue...
4
by: News | last post by:
Hi Everyone, The attached code creates client connections to websphere queue managers and then processes an inquiry against them. The program functions when it gets options from the command...
10
by: utab | last post by:
Dear all, So passing and returning a class object is the time when to include the definition of the copy constructor into the class definition. But if we don't call by value or return by value, ...
94
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock...
3
by: cmartin1986 | last post by:
I have written a sql query and I need it to return 0 when it doesn't find any matches to my criteria. I have tried adding iif statements, tried sum, and just Count, all of these methods work fine to...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.