-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
System.Security.Permissions.cs
2514 lines (2513 loc) · 169 KB
/
System.Security.Permissions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ------------------------------------------------------------------------------
// Changes to this file must follow the https://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System
{
public sealed partial class ApplicationIdentity : System.Runtime.Serialization.ISerializable
{
public ApplicationIdentity(string applicationIdentityFullName) { }
public string CodeBase { get { throw null; } }
public string FullName { get { throw null; } }
void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public override string ToString() { throw null; }
}
}
namespace System.Configuration
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class ConfigurationPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public ConfigurationPermission(System.Security.Permissions.PermissionState state) { }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement securityElement) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.All, AllowMultiple=true, Inherited=false)]
public sealed partial class ConfigurationPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public ConfigurationPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public override System.Security.IPermission CreatePermission() { throw null; }
}
}
namespace System.Data.Common
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public abstract partial class DBDataPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
protected DBDataPermission() { }
protected DBDataPermission(System.Data.Common.DBDataPermission permission) { }
protected DBDataPermission(System.Data.Common.DBDataPermissionAttribute permissionAttribute) { }
protected DBDataPermission(System.Security.Permissions.PermissionState state) { }
protected DBDataPermission(System.Security.Permissions.PermissionState state, bool allowBlankPassword) { }
public bool AllowBlankPassword { get { throw null; } set { } }
public virtual void Add(string connectionString, string restrictions, System.Data.KeyRestrictionBehavior behavior) { }
protected void Clear() { }
public override System.Security.IPermission Copy() { throw null; }
protected virtual System.Data.Common.DBDataPermission CreateInstance() { throw null; }
public override void FromXml(System.Security.SecurityElement securityElement) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public abstract partial class DBDataPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
protected DBDataPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public bool AllowBlankPassword { get { throw null; } set { } }
public string ConnectionString { get { throw null; } set { } }
public System.Data.KeyRestrictionBehavior KeyRestrictionBehavior { get { throw null; } set { } }
public string KeyRestrictions { get { throw null; } set { } }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public bool ShouldSerializeConnectionString() { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public bool ShouldSerializeKeyRestrictions() { throw null; }
}
}
namespace System.Data.Odbc
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class OdbcPermission : System.Data.Common.DBDataPermission
{
public OdbcPermission() { }
public OdbcPermission(System.Security.Permissions.PermissionState state) { }
public OdbcPermission(System.Security.Permissions.PermissionState state, bool allowBlankPassword) { }
public override void Add(string connectionString, string restrictions, System.Data.KeyRestrictionBehavior behavior) { }
public override System.Security.IPermission Copy() { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class OdbcPermissionAttribute : System.Data.Common.DBDataPermissionAttribute
{
public OdbcPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public override System.Security.IPermission CreatePermission() { throw null; }
}
}
namespace System.Data.OleDb
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class OleDbPermission : System.Data.Common.DBDataPermission
{
public OleDbPermission() { }
public OleDbPermission(System.Security.Permissions.PermissionState state) { }
public OleDbPermission(System.Security.Permissions.PermissionState state, bool allowBlankPassword) { }
[System.ComponentModel.BrowsableAttribute(false)]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public string Provider { get { throw null; } set { } }
public override System.Security.IPermission Copy() { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class OleDbPermissionAttribute : System.Data.Common.DBDataPermissionAttribute
{
public OleDbPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
[System.ComponentModel.BrowsableAttribute(false)]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public string Provider { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
}
namespace System.Data.OracleClient
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class OraclePermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public OraclePermission(System.Security.Permissions.PermissionState state) { }
public bool AllowBlankPassword { get { throw null; } set { } }
public void Add(string connectionString, string restrictions, System.Data.KeyRestrictionBehavior behavior) { }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement securityElement) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class OraclePermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public OraclePermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public bool AllowBlankPassword { get { throw null; } set { } }
public string ConnectionString { get { throw null; } set { } }
public System.Data.KeyRestrictionBehavior KeyRestrictionBehavior { get { throw null; } set { } }
public string KeyRestrictions { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public bool ShouldSerializeConnectionString() { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public bool ShouldSerializeKeyRestrictions() { throw null; }
}
}
namespace System.Data.SqlClient
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class SqlClientPermission : System.Data.Common.DBDataPermission
{
public SqlClientPermission() { }
public SqlClientPermission(System.Security.Permissions.PermissionState state) { }
public SqlClientPermission(System.Security.Permissions.PermissionState state, bool allowBlankPassword) { }
public override void Add(string connectionString, string restrictions, System.Data.KeyRestrictionBehavior behavior) { }
public override System.Security.IPermission Copy() { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class SqlClientPermissionAttribute : System.Data.Common.DBDataPermissionAttribute
{
public SqlClientPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public override System.Security.IPermission CreatePermission() { throw null; }
}
}
namespace System.Diagnostics
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class EventLogPermission : System.Security.Permissions.ResourcePermissionBase
{
public EventLogPermission() { }
public EventLogPermission(System.Diagnostics.EventLogPermissionAccess permissionAccess, string machineName) { }
public EventLogPermission(System.Diagnostics.EventLogPermissionEntry[] permissionAccessEntries) { }
public EventLogPermission(System.Security.Permissions.PermissionState state) { }
public System.Diagnostics.EventLogPermissionEntryCollection PermissionEntries { get { throw null; } }
}
[System.FlagsAttribute]
public enum EventLogPermissionAccess
{
None = 0,
Browse = 2,
Instrument = 6,
Audit = 10,
Write = 16,
Administer = 48,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Event | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public partial class EventLogPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public EventLogPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public string MachineName { get { throw null; } set { } }
public System.Diagnostics.EventLogPermissionAccess PermissionAccess { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
public partial class EventLogPermissionEntry
{
public EventLogPermissionEntry(System.Diagnostics.EventLogPermissionAccess permissionAccess, string machineName) { }
public string MachineName { get { throw null; } }
public System.Diagnostics.EventLogPermissionAccess PermissionAccess { get { throw null; } }
}
public partial class EventLogPermissionEntryCollection : System.Collections.CollectionBase
{
internal EventLogPermissionEntryCollection() { }
public System.Diagnostics.EventLogPermissionEntry this[int index] { get { throw null; } set { } }
public int Add(System.Diagnostics.EventLogPermissionEntry value) { throw null; }
public void AddRange(System.Diagnostics.EventLogPermissionEntryCollection value) { }
public void AddRange(System.Diagnostics.EventLogPermissionEntry[] value) { }
public bool Contains(System.Diagnostics.EventLogPermissionEntry value) { throw null; }
public void CopyTo(System.Diagnostics.EventLogPermissionEntry[] array, int index) { }
public int IndexOf(System.Diagnostics.EventLogPermissionEntry value) { throw null; }
public void Insert(int index, System.Diagnostics.EventLogPermissionEntry value) { }
protected override void OnClear() { }
protected override void OnInsert(int index, object value) { }
protected override void OnRemove(int index, object value) { }
protected override void OnSet(int index, object oldValue, object newValue) { }
public void Remove(System.Diagnostics.EventLogPermissionEntry value) { }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class PerformanceCounterPermission : System.Security.Permissions.ResourcePermissionBase
{
public PerformanceCounterPermission() { }
public PerformanceCounterPermission(System.Diagnostics.PerformanceCounterPermissionAccess permissionAccess, string machineName, string categoryName) { }
public PerformanceCounterPermission(System.Diagnostics.PerformanceCounterPermissionEntry[] permissionAccessEntries) { }
public PerformanceCounterPermission(System.Security.Permissions.PermissionState state) { }
public System.Diagnostics.PerformanceCounterPermissionEntryCollection PermissionEntries { get { throw null; } }
}
[System.FlagsAttribute]
public enum PerformanceCounterPermissionAccess
{
None = 0,
Browse = 1,
Read = 1,
Write = 2,
Instrument = 3,
Administer = 7,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Event | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public partial class PerformanceCounterPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public PerformanceCounterPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public string CategoryName { get { throw null; } set { } }
public string MachineName { get { throw null; } set { } }
public System.Diagnostics.PerformanceCounterPermissionAccess PermissionAccess { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
public partial class PerformanceCounterPermissionEntry
{
public PerformanceCounterPermissionEntry(System.Diagnostics.PerformanceCounterPermissionAccess permissionAccess, string machineName, string categoryName) { }
public string CategoryName { get { throw null; } }
public string MachineName { get { throw null; } }
public System.Diagnostics.PerformanceCounterPermissionAccess PermissionAccess { get { throw null; } }
}
public partial class PerformanceCounterPermissionEntryCollection : System.Collections.CollectionBase
{
internal PerformanceCounterPermissionEntryCollection() { }
public System.Diagnostics.PerformanceCounterPermissionEntry this[int index] { get { throw null; } set { } }
public int Add(System.Diagnostics.PerformanceCounterPermissionEntry value) { throw null; }
public void AddRange(System.Diagnostics.PerformanceCounterPermissionEntryCollection value) { }
public void AddRange(System.Diagnostics.PerformanceCounterPermissionEntry[] value) { }
public bool Contains(System.Diagnostics.PerformanceCounterPermissionEntry value) { throw null; }
public void CopyTo(System.Diagnostics.PerformanceCounterPermissionEntry[] array, int index) { }
public int IndexOf(System.Diagnostics.PerformanceCounterPermissionEntry value) { throw null; }
public void Insert(int index, System.Diagnostics.PerformanceCounterPermissionEntry value) { }
protected override void OnClear() { }
protected override void OnInsert(int index, object value) { }
protected override void OnRemove(int index, object value) { }
protected override void OnSet(int index, object oldValue, object newValue) { }
public void Remove(System.Diagnostics.PerformanceCounterPermissionEntry value) { }
}
}
namespace System.DirectoryServices
{
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
public sealed partial class DirectoryServicesPermission : System.Security.Permissions.ResourcePermissionBase
{
public DirectoryServicesPermission() { }
public DirectoryServicesPermission(System.DirectoryServices.DirectoryServicesPermissionAccess permissionAccess, string path) { }
public DirectoryServicesPermission(System.DirectoryServices.DirectoryServicesPermissionEntry[] permissionAccessEntries) { }
public DirectoryServicesPermission(System.Security.Permissions.PermissionState state) { }
public System.DirectoryServices.DirectoryServicesPermissionEntryCollection PermissionEntries { get { throw null; } }
}
[System.FlagsAttribute]
public enum DirectoryServicesPermissionAccess
{
None = 0,
Browse = 2,
Write = 6,
}
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Event | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public partial class DirectoryServicesPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public DirectoryServicesPermissionAttribute(System.Security.Permissions.SecurityAction action) : base(default(System.Security.Permissions.SecurityAction)) { }
public string Path { get { throw null; } set { } }
public System.DirectoryServices.DirectoryServicesPermissionAccess PermissionAccess { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
public partial class DirectoryServicesPermissionEntry
{
public DirectoryServicesPermissionEntry(System.DirectoryServices.DirectoryServicesPermissionAccess permissionAccess, string path) { }
public string Path { get { throw null; } }
public System.DirectoryServices.DirectoryServicesPermissionAccess PermissionAccess { get { throw null; } }
}
public partial class DirectoryServicesPermissionEntryCollection : System.Collections.CollectionBase
{
internal DirectoryServicesPermissionEntryCollection() { }
public System.DirectoryServices.DirectoryServicesPermissionEntry this[int index] { get { throw null; } set { } }
public int Add(System.DirectoryServices.DirectoryServicesPermissionEntry value) { throw null; }
public void AddRange(System.DirectoryServices.DirectoryServicesPermissionEntryCollection value) { }
public void AddRange(System.DirectoryServices.DirectoryServicesPermissionEntry[] value) { }
public bool Contains(System.DirectoryServices.DirectoryServicesPermissionEntry value) { throw null; }
public void CopyTo(System.DirectoryServices.DirectoryServicesPermissionEntry[] array, int index) { }
public int IndexOf(System.DirectoryServices.DirectoryServicesPermissionEntry value) { throw null; }
public void Insert(int index, System.DirectoryServices.DirectoryServicesPermissionEntry value) { }
protected override void OnClear() { }
protected override void OnInsert(int index, object value) { }
protected override void OnRemove(int index, object value) { }
protected override void OnSet(int index, object oldValue, object newValue) { }
public void Remove(System.DirectoryServices.DirectoryServicesPermissionEntry value) { }
}
}
namespace System.Drawing.Printing
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class PrintingPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public PrintingPermission(System.Drawing.Printing.PrintingPermissionLevel printingLevel) { }
public PrintingPermission(System.Security.Permissions.PermissionState state) { }
public System.Drawing.Printing.PrintingPermissionLevel Level { get { throw null; } set { } }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement element) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.All, AllowMultiple=true)]
public sealed partial class PrintingPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public PrintingPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public System.Drawing.Printing.PrintingPermissionLevel Level { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
public enum PrintingPermissionLevel
{
NoPrinting = 0,
SafePrinting = 1,
DefaultPrinting = 2,
AllPrinting = 3,
}
}
namespace System.Net
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class DnsPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public DnsPermission(System.Security.Permissions.PermissionState state) { }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement securityElement) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class DnsPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public DnsPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public override System.Security.IPermission CreatePermission() { throw null; }
}
public partial class EndpointPermission
{
internal EndpointPermission() { }
public string Hostname { get { throw null; } }
public int Port { get { throw null; } }
public System.Net.TransportType Transport { get { throw null; } }
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
}
[System.FlagsAttribute]
public enum NetworkAccess
{
Connect = 64,
Accept = 128,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class SocketPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public const int AllPorts = -1;
public SocketPermission(System.Net.NetworkAccess access, System.Net.TransportType transport, string hostName, int portNumber) { }
public SocketPermission(System.Security.Permissions.PermissionState state) { }
public System.Collections.IEnumerator AcceptList { get { throw null; } }
public System.Collections.IEnumerator ConnectList { get { throw null; } }
public void AddPermission(System.Net.NetworkAccess access, System.Net.TransportType transport, string hostName, int portNumber) { }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement securityElement) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class SocketPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public SocketPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public string Access { get { throw null; } set { } }
public string Host { get { throw null; } set { } }
public string Port { get { throw null; } set { } }
public string Transport { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
public enum TransportType
{
Connectionless = 1,
Udp = 1,
ConnectionOriented = 2,
Tcp = 2,
All = 3,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class WebPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public WebPermission() { }
public WebPermission(System.Net.NetworkAccess access, string uriString) { }
public WebPermission(System.Net.NetworkAccess access, System.Text.RegularExpressions.Regex uriRegex) { }
public WebPermission(System.Security.Permissions.PermissionState state) { }
public System.Collections.IEnumerator AcceptList { get { throw null; } }
public System.Collections.IEnumerator ConnectList { get { throw null; } }
public void AddPermission(System.Net.NetworkAccess access, string uriString) { }
public void AddPermission(System.Net.NetworkAccess access, System.Text.RegularExpressions.Regex uriRegex) { }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement securityElement) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class WebPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public WebPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public string Accept { get { throw null; } set { } }
public string AcceptPattern { get { throw null; } set { } }
public string Connect { get { throw null; } set { } }
public string ConnectPattern { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
}
namespace System.Net.Mail
{
public enum SmtpAccess
{
None = 0,
Connect = 1,
ConnectToUnrestrictedPort = 2,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class SmtpPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public SmtpPermission(bool unrestricted) { }
public SmtpPermission(System.Net.Mail.SmtpAccess access) { }
public SmtpPermission(System.Security.Permissions.PermissionState state) { }
public System.Net.Mail.SmtpAccess Access { get { throw null; } }
public void AddPermission(System.Net.Mail.SmtpAccess access) { }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement securityElement) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class SmtpPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public SmtpPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public string Access { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
}
namespace System.Net.NetworkInformation
{
[System.FlagsAttribute]
public enum NetworkInformationAccess
{
None = 0,
Read = 1,
Ping = 4,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class NetworkInformationPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public NetworkInformationPermission(System.Net.NetworkInformation.NetworkInformationAccess access) { }
public NetworkInformationPermission(System.Security.Permissions.PermissionState state) { }
public System.Net.NetworkInformation.NetworkInformationAccess Access { get { throw null; } }
public void AddPermission(System.Net.NetworkInformation.NetworkInformationAccess access) { }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement securityElement) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class NetworkInformationPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public NetworkInformationPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public string Access { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
}
namespace System.Net.PeerToPeer
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class PnrpPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public PnrpPermission(System.Security.Permissions.PermissionState state) { }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement e) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class PnrpPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public PnrpPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public override System.Security.IPermission CreatePermission() { throw null; }
}
public enum PnrpScope
{
All = 0,
Global = 1,
SiteLocal = 2,
LinkLocal = 3,
}
}
namespace System.Net.PeerToPeer.Collaboration
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class PeerCollaborationPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public PeerCollaborationPermission(System.Security.Permissions.PermissionState state) { }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement e) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class PeerCollaborationPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public PeerCollaborationPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public override System.Security.IPermission CreatePermission() { throw null; }
}
}
namespace System.Security
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public abstract partial class CodeAccessPermission : System.Security.IPermission, System.Security.ISecurityEncodable, System.Security.IStackWalk
{
protected CodeAccessPermission() { }
public void Assert() { }
public abstract System.Security.IPermission Copy();
public void Demand() { }
[System.ObsoleteAttribute]
public void Deny() { }
public override bool Equals(object obj) { throw null; }
public abstract void FromXml(System.Security.SecurityElement elem);
public override int GetHashCode() { throw null; }
public abstract System.Security.IPermission Intersect(System.Security.IPermission target);
public abstract bool IsSubsetOf(System.Security.IPermission target);
public void PermitOnly() { }
public static void RevertAll() { }
public static void RevertAssert() { }
[System.ObsoleteAttribute]
public static void RevertDeny() { }
public static void RevertPermitOnly() { }
public override string ToString() { throw null; }
public abstract System.Security.SecurityElement ToXml();
public virtual System.Security.IPermission Union(System.Security.IPermission other) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public partial class HostProtectionException : System.SystemException
{
public HostProtectionException() { }
#if NET8_0_OR_GREATER
[System.ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
#endif
protected HostProtectionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public HostProtectionException(string message) { }
public HostProtectionException(string message, System.Exception e) { }
public HostProtectionException(string message, System.Security.Permissions.HostProtectionResource protectedResources, System.Security.Permissions.HostProtectionResource demandedResources) { }
public System.Security.Permissions.HostProtectionResource DemandedResources { get { throw null; } }
public System.Security.Permissions.HostProtectionResource ProtectedResources { get { throw null; } }
public override string ToString() { throw null; }
}
public partial class HostSecurityManager
{
public HostSecurityManager() { }
public virtual System.Security.Policy.PolicyLevel DomainPolicy { get { throw null; } }
public virtual System.Security.HostSecurityManagerOptions Flags { get { throw null; } }
public virtual System.Security.Policy.ApplicationTrust DetermineApplicationTrust(System.Security.Policy.Evidence applicationEvidence, System.Security.Policy.Evidence activatorEvidence, System.Security.Policy.TrustManagerContext context) { throw null; }
public virtual System.Security.Policy.EvidenceBase GenerateAppDomainEvidence(System.Type evidenceType) { throw null; }
public virtual System.Security.Policy.EvidenceBase GenerateAssemblyEvidence(System.Type evidenceType, System.Reflection.Assembly assembly) { throw null; }
public virtual System.Type[] GetHostSuppliedAppDomainEvidenceTypes() { throw null; }
public virtual System.Type[] GetHostSuppliedAssemblyEvidenceTypes(System.Reflection.Assembly assembly) { throw null; }
public virtual System.Security.Policy.Evidence ProvideAppDomainEvidence(System.Security.Policy.Evidence inputEvidence) { throw null; }
public virtual System.Security.Policy.Evidence ProvideAssemblyEvidence(System.Reflection.Assembly loadedAssembly, System.Security.Policy.Evidence inputEvidence) { throw null; }
[System.ObsoleteAttribute]
public virtual System.Security.PermissionSet ResolvePolicy(System.Security.Policy.Evidence evidence) { throw null; }
}
[System.FlagsAttribute]
public enum HostSecurityManagerOptions
{
None = 0,
HostAppDomainEvidence = 1,
HostPolicyLevel = 2,
HostAssemblyEvidence = 4,
HostDetermineApplicationTrust = 8,
HostResolvePolicy = 16,
AllFlags = 31,
}
public partial interface IEvidenceFactory
{
System.Security.Policy.Evidence Evidence { get; }
}
public partial interface ISecurityPolicyEncodable
{
void FromXml(System.Security.SecurityElement e, System.Security.Policy.PolicyLevel level);
System.Security.SecurityElement ToXml(System.Security.Policy.PolicyLevel level);
}
#if !NET
public partial interface IStackWalk
{
void Assert();
void Demand();
void Deny();
void PermitOnly();
}
#endif
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class NamedPermissionSet : System.Security.PermissionSet
{
public NamedPermissionSet(System.Security.NamedPermissionSet permSet) : base (default(System.Security.Permissions.PermissionState)) { }
public NamedPermissionSet(string name) : base (default(System.Security.Permissions.PermissionState)) { }
public NamedPermissionSet(string name, System.Security.Permissions.PermissionState state) : base (default(System.Security.Permissions.PermissionState)) { }
public NamedPermissionSet(string name, System.Security.PermissionSet permSet) : base (default(System.Security.Permissions.PermissionState)) { }
public string Description { get { throw null; } set { } }
public string Name { get { throw null; } set { } }
public override System.Security.PermissionSet Copy() { throw null; }
public System.Security.NamedPermissionSet Copy(string name) { throw null; }
public override bool Equals(object o) { throw null; }
public override void FromXml(System.Security.SecurityElement et) { }
public override int GetHashCode() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
}
#if !NET
public partial class PermissionSet : System.Collections.ICollection, System.Collections.IEnumerable, System.Runtime.Serialization.IDeserializationCallback, System.Security.ISecurityEncodable, System.Security.IStackWalk
{
public PermissionSet(System.Security.Permissions.PermissionState state) { }
public PermissionSet(System.Security.PermissionSet permSet) { }
public virtual int Count { get { throw null; } }
public virtual bool IsReadOnly { get { throw null; } }
public virtual bool IsSynchronized { get { throw null; } }
public virtual object SyncRoot { get { throw null; } }
public System.Security.IPermission AddPermission(System.Security.IPermission perm) { throw null; }
protected virtual System.Security.IPermission AddPermissionImpl(System.Security.IPermission perm) { throw null; }
public void Assert() { }
public bool ContainsNonCodeAccessPermissions() { throw null; }
[System.ObsoleteAttribute]
public static byte[] ConvertPermissionSet(string inFormat, byte[] inData, string outFormat) { throw null; }
public virtual System.Security.PermissionSet Copy() { throw null; }
public virtual void CopyTo(System.Array array, int index) { }
public void Demand() { }
[System.ObsoleteAttribute]
public void Deny() { }
public override bool Equals(object o) { throw null; }
public virtual void FromXml(System.Security.SecurityElement et) { }
public System.Collections.IEnumerator GetEnumerator() { throw null; }
protected virtual System.Collections.IEnumerator GetEnumeratorImpl() { throw null; }
public override int GetHashCode() { throw null; }
public System.Security.IPermission GetPermission(System.Type permClass) { throw null; }
protected virtual System.Security.IPermission GetPermissionImpl(System.Type permClass) { throw null; }
public System.Security.PermissionSet Intersect(System.Security.PermissionSet other) { throw null; }
public bool IsEmpty() { throw null; }
public bool IsSubsetOf(System.Security.PermissionSet target) { throw null; }
public bool IsUnrestricted() { throw null; }
public void PermitOnly() { }
public System.Security.IPermission RemovePermission(System.Type permClass) { throw null; }
protected virtual System.Security.IPermission RemovePermissionImpl(System.Type permClass) { throw null; }
public static void RevertAssert() { }
public System.Security.IPermission SetPermission(System.Security.IPermission perm) { throw null; }
protected virtual System.Security.IPermission SetPermissionImpl(System.Security.IPermission perm) { throw null; }
void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(object sender) { }
public override string ToString() { throw null; }
public virtual System.Security.SecurityElement ToXml() { throw null; }
public System.Security.PermissionSet Union(System.Security.PermissionSet other) { throw null; }
}
#endif
public enum PolicyLevelType
{
User = 0,
Machine = 1,
Enterprise = 2,
AppDomain = 3,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class SecurityContext : System.IDisposable
{
internal SecurityContext() { }
public static System.Security.SecurityContext Capture() { throw null; }
public System.Security.SecurityContext CreateCopy() { throw null; }
public void Dispose() { }
public static bool IsFlowSuppressed() { throw null; }
public static bool IsWindowsIdentityFlowSuppressed() { throw null; }
public static void RestoreFlow() { }
public static void Run(System.Security.SecurityContext securityContext, System.Threading.ContextCallback callback, object state) { }
public static System.Threading.AsyncFlowControl SuppressFlow() { throw null; }
public static System.Threading.AsyncFlowControl SuppressFlowWindowsIdentity() { throw null; }
}
public enum SecurityContextSource
{
CurrentAppDomain = 0,
CurrentAssembly = 1,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public static partial class SecurityManager
{
[System.ObsoleteAttribute]
public static bool CheckExecutionRights { get { throw null; } set { } }
[System.ObsoleteAttribute]
public static bool SecurityEnabled { get { throw null; } set { } }
public static bool CurrentThreadRequiresSecurityContextCapture() { throw null; }
public static System.Security.PermissionSet GetStandardSandbox(System.Security.Policy.Evidence evidence) { throw null; }
public static void GetZoneAndOrigin(out System.Collections.ArrayList zone, out System.Collections.ArrayList origin) { throw null; }
[System.ObsoleteAttribute]
public static bool IsGranted(System.Security.IPermission perm) { throw null; }
[System.ObsoleteAttribute]
public static System.Security.Policy.PolicyLevel LoadPolicyLevelFromFile(string path, System.Security.PolicyLevelType type) { throw null; }
[System.ObsoleteAttribute]
public static System.Security.Policy.PolicyLevel LoadPolicyLevelFromString(string str, System.Security.PolicyLevelType type) { throw null; }
[System.ObsoleteAttribute]
public static System.Collections.IEnumerator PolicyHierarchy() { throw null; }
[System.ObsoleteAttribute]
public static System.Security.PermissionSet ResolvePolicy(System.Security.Policy.Evidence evidence) { throw null; }
[System.ObsoleteAttribute]
public static System.Security.PermissionSet ResolvePolicy(System.Security.Policy.Evidence evidence, System.Security.PermissionSet reqdPset, System.Security.PermissionSet optPset, System.Security.PermissionSet denyPset, out System.Security.PermissionSet denied) { throw null; }
[System.ObsoleteAttribute]
public static System.Security.PermissionSet ResolvePolicy(System.Security.Policy.Evidence[] evidences) { throw null; }
[System.ObsoleteAttribute]
public static System.Collections.IEnumerator ResolvePolicyGroups(System.Security.Policy.Evidence evidence) { throw null; }
[System.ObsoleteAttribute]
public static System.Security.PermissionSet ResolveSystemPolicy(System.Security.Policy.Evidence evidence) { throw null; }
[System.ObsoleteAttribute]
public static void SavePolicy() { }
[System.ObsoleteAttribute]
public static void SavePolicyLevel(System.Security.Policy.PolicyLevel level) { }
}
public abstract partial class SecurityState
{
protected SecurityState() { }
public abstract void EnsureState();
public bool IsStateAvailable() { throw null; }
}
public enum SecurityZone
{
NoZone = -1,
MyComputer = 0,
Intranet = 1,
Trusted = 2,
Internet = 3,
Untrusted = 4,
}
public sealed partial class XmlSyntaxException : System.SystemException
{
public XmlSyntaxException() { }
public XmlSyntaxException(int lineNumber) { }
public XmlSyntaxException(int lineNumber, string message) { }
public XmlSyntaxException(string message) { }
public XmlSyntaxException(string message, System.Exception inner) { }
}
}
namespace System.Security.Permissions
{
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class DataProtectionPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public DataProtectionPermission(System.Security.Permissions.DataProtectionPermissionFlags flag) { }
public DataProtectionPermission(System.Security.Permissions.PermissionState state) { }
public System.Security.Permissions.DataProtectionPermissionFlags Flags { get { throw null; } set { } }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement securityElement) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class DataProtectionPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public DataProtectionPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public System.Security.Permissions.DataProtectionPermissionFlags Flags { get { throw null; } set { } }
public bool ProtectData { get { throw null; } set { } }
public bool ProtectMemory { get { throw null; } set { } }
public bool UnprotectData { get { throw null; } set { } }
public bool UnprotectMemory { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.FlagsAttribute]
public enum DataProtectionPermissionFlags
{
NoFlags = 0,
ProtectData = 1,
UnprotectData = 2,
ProtectMemory = 4,
UnprotectMemory = 8,
AllFlags = 15,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class EnvironmentPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public EnvironmentPermission(System.Security.Permissions.EnvironmentPermissionAccess flag, string pathList) { }
public EnvironmentPermission(System.Security.Permissions.PermissionState state) { }
public void AddPathList(System.Security.Permissions.EnvironmentPermissionAccess flag, string pathList) { }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement esd) { }
public string GetPathList(System.Security.Permissions.EnvironmentPermissionAccess flag) { throw null; }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public void SetPathList(System.Security.Permissions.EnvironmentPermissionAccess flag, string pathList) { }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission other) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.FlagsAttribute]
public enum EnvironmentPermissionAccess
{
NoAccess = 0,
Read = 1,
Write = 2,
AllAccess = 3,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class EnvironmentPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
{
public EnvironmentPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
public string All { get { throw null; } set { } }
public string Read { get { throw null; } set { } }
public string Write { get { throw null; } set { } }
public override System.Security.IPermission CreatePermission() { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
public sealed partial class FileDialogPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
{
public FileDialogPermission(System.Security.Permissions.FileDialogPermissionAccess access) { }
public FileDialogPermission(System.Security.Permissions.PermissionState state) { }
public System.Security.Permissions.FileDialogPermissionAccess Access { get { throw null; } set { } }
public override System.Security.IPermission Copy() { throw null; }
public override void FromXml(System.Security.SecurityElement esd) { }
public override System.Security.IPermission Intersect(System.Security.IPermission target) { throw null; }
public override bool IsSubsetOf(System.Security.IPermission target) { throw null; }
public bool IsUnrestricted() { throw null; }
public override System.Security.SecurityElement ToXml() { throw null; }
public override System.Security.IPermission Union(System.Security.IPermission target) { throw null; }
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.FlagsAttribute]
public enum FileDialogPermissionAccess
{
None = 0,
Open = 1,
Save = 2,
OpenSave = 3,
}
#if NET
[System.ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
#endif
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed partial class FileDialogPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute