473,511 Members | 15,156 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Nov 22 '05 #1
0 768

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

Similar topics

4
2003
by: Gerson Kurz | last post by:
I stumbled across this (while using my homebrewn enum class): class test: pass instance = test() setattr(instance, "THIS :*2+~# IS OBVIOUSLY INVALID", 123) I would've expected some kind of...
0
1901
by: James Thornton | last post by:
I'm running PG 7.2.3, and I am getting these notices when running vacuum analzye: spower=# vacuum analyze; NOTICE: Rel sec_browser_properties: TID 935/15: OID IS INVALID. TUPGONE 0. NOTICE: ...
0
803
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]...
2
1130
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
3396
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...
11
2462
by: Nad | last post by:
Hello, I have a page with two link buttons. When I click on the first one I call server.execute("target.aspx") to view target.aspx on the original page. Then I click on the second link button...
9
6609
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its...
2
2011
by: none | last post by:
Hi, I'm opening a popup window with JavaScript. It has a command button. This is from the primary source (opener) window: ###################################################################...
3
7141
by: fazulu deen | last post by:
Hi all, For the following code : file_ptr = fopen("pass_fail.txt", "a"); // error line 393 fdisplay(file_ptr, "Test Passed"); fclose(file_ptr);
4
3370
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
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
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
7367
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
5673
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,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.