New test.
[mono.git] / mcs / class / corlib / System.Security.AccessControl / NativeObjectSecurity.cs
1 //
2 // System.Security.AccessControl.NativeObjectSecurity implementation
3 //
4 // Author:
5 //      Dick Porter  <dick@ximian.com>
6 //
7 // Copyright (C) 2005, 2006 Novell, Inc (http://www.novell.com)
8 //
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
16 // 
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
19 // 
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28
29 #if NET_2_0
30
31 using System.Runtime.InteropServices;
32
33 namespace System.Security.AccessControl {
34         public abstract class NativeObjectSecurity : CommonObjectSecurity {
35                 protected internal delegate Exception ExceptionFromErrorCode (int errorCode, string name, SafeHandle handle, object context);
36                 
37                 protected NativeObjectSecurity ()
38                 {
39                         /* Give it a 0-param constructor */
40                 }
41                 
42                 protected NativeObjectSecurity (bool isContainer,
43                                                 ResourceType resourceType)
44                 {
45                 }
46
47                 protected NativeObjectSecurity (bool isContainer,
48                                                 ResourceType resourceType,
49                                                 ExceptionFromErrorCode exceptionFromErrorCode,
50                                                 object exceptionContext)
51                 {
52                 }
53                 
54                 protected NativeObjectSecurity (bool isContainer,
55                                                 ResourceType resourceType,
56                                                 SafeHandle handle,
57                                                 AccessControlSections includeSections)
58                 {
59                 }
60                 
61                 protected NativeObjectSecurity (bool isContainer,
62                                                 ResourceType resourceType,
63                                                 string name,
64                                                 AccessControlSections includeSections)
65                 {
66                 }
67                 
68                 protected NativeObjectSecurity (bool isContainer,
69                                                 ResourceType resourceType,
70                                                 SafeHandle handle,
71                                                 AccessControlSections includeSections,
72                                                 ExceptionFromErrorCode exceptionFromErrorCode,
73                                                 object exceptionContext)
74                 {
75                 }
76                 
77                 protected NativeObjectSecurity (bool isContainer,
78                                                 ResourceType resourceType,
79                                                 string name,
80                                                 AccessControlSections includeSections,
81                                                 ExceptionFromErrorCode exceptionFromErrorCode,
82                                                 object exceptionContext)
83                 {
84                 }
85                 
86                 protected override sealed void Persist (SafeHandle handle,
87                                                         AccessControlSections includeSections)
88                 {
89                         throw new NotImplementedException ();
90                 }
91                 
92                 protected override sealed void Persist (string name,
93                                                         AccessControlSections includeSections)
94                 {
95                         throw new NotImplementedException ();
96                 }
97                 
98                 protected void Persist (SafeHandle handle,
99                                         AccessControlSections includeSections,
100                                         object exceptionContext)
101                 {
102                         throw new NotImplementedException ();
103                 }
104                 
105                 protected void Persist (string name,
106                                         AccessControlSections includeSections,
107                                         object exceptionContext)
108                 {
109                         throw new NotImplementedException ();
110                 }
111         }
112 }
113
114 #endif