473,396 Members | 1,703 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,396 software developers and data experts.

Invalid helptext IPermission.IsSubSetOf

The IPermission.IsSubSetOf helptext states:

[http://winfx.msdn.microsoft.com/libr...ssubsetof.asp]
[http://msdn.microsoft.com/library/de...etoftopic.asp]

IPermission.IsSubSetOf :
<------------ BEGIN PASTE ------------->
The current permission is a subset of the specified permission if the
current permission specifies a set of operations that is wholly
contained by the specified permission. For example, a permission that
represents access to C:\example.txt is a subset of a permission that
represents access to C:\. If this method returns true, the current
permission represents no more access to the protected resource than
does the specified permission.

The following statements are required to be true for all
implementations of the IsSubsetOf method. X, Y, and Z represent
IPermission objects that are not a null reference (Nothing in Visual
Basic).

1) X.IsSubsetOf(X) returns true.
2) X.IsSubsetOf(Y) returns the same value as Y.IsSubsetOf(X) if and
only if X and Y represent the same set of permissions.
3) If X.IsSubsetOf(Y) and Y.IsSubsetOf(Z) both return true,
X.IsSubsetOf(Z) returns true.

<------------ END PASTE ------------->

The second statement seems to be wrong:

EXAMPLE: If X gives access to C:\ and Y gives access to D:\. Clearly, X
is no subset of Y and vice verca. Therefore, these are not subsets of
eachother: X.IsSubsetOf(Y) returns false and Y.IsSubsetOf(X) returns
false. According to the second statement this would mean that y and X
represent the same set of permissions.

Shouldn't this second statement state:

2) X.IsSubsetOf(Y) returns TRUE and Y.IsSubsetOf(X) return TRUE if and
only if X and Y represent the same set of permissions.

A response to this message is greatly appreciated.

Regards,
Martijn Kaag
VECOZO BV
www.vecozo.nl

Jul 21 '05 #1
0 798

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

Similar topics

2
by: Dick Hob | last post by:
I'm using Access2000 on a Windows2000 pc. When is try to look up help text concerning "ADO" I get 185 responses, but when I select a specific subject I get no corresponding helptext. Does...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
0
by: Martijn Kaag (VECOZO BV) | last post by:
The IPermission.IsSubSetOf helptext states: http://winfx.msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/winfx/ref/ns/system.security/i/ipermission/m/issubsetof.asp]...
4
by: robert | last post by:
On a server the binary (red hat) installed python2.4 and also a fresh compiled python2.5 spits "sem_post: Invalid argument". What is this and how can this solved? Robert ============== ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.