Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Security / Attributes.cs / 2 / Attributes.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System.Runtime.InteropServices; namespace System.Security { // DynamicSecurityMethodAttribute: // Indicates that calling the target method requires space for a security // object to be allocated on the callers stack. This attribute is only ever // set on certain security methods defined within mscorlib. [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false )] sealed internal class DynamicSecurityMethodAttribute : System.Attribute { } // SuppressUnmanagedCodeSecurityAttribute: // Indicates that the target P/Invoke method(s) should skip the per-call // security checked for unmanaged code permission. [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false )] [System.Runtime.InteropServices.ComVisible(true)] sealed public class SuppressUnmanagedCodeSecurityAttribute : System.Attribute { } // UnverifiableCodeAttribute: // Indicates that the target module contains unverifiable code. [AttributeUsage(AttributeTargets.Module, AllowMultiple = true, Inherited = false )] [System.Runtime.InteropServices.ComVisible(true)] sealed public class UnverifiableCodeAttribute : System.Attribute { } // AllowPartiallyTrustedCallersAttribute: // Indicates that the Assembly is secure and can be used by untrusted // and semitrusted clients // For v.1, this is valid only on Assemblies, but could be expanded to // include Module, Method, class [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false )] [System.Runtime.InteropServices.ComVisible(true)] sealed public class AllowPartiallyTrustedCallersAttribute : System.Attribute { public AllowPartiallyTrustedCallersAttribute () { } } public enum SecurityCriticalScope { Explicit = 0, Everything = 0x1 } // SecurityCriticalAttribute // Indicates that the decorated code or assembly performs security [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false )] sealed public class SecurityCriticalAttribute : System.Attribute { internal SecurityCriticalScope _val; public SecurityCriticalAttribute () {} public SecurityCriticalAttribute(SecurityCriticalScope scope) { _val = scope; } public SecurityCriticalScope Scope { get { return _val; } } } // SecurityTreatAsSafeAttribute: // Indicates that the code may contain violations to the security [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false )] sealed public class SecurityTreatAsSafeAttribute : System.Attribute { public SecurityTreatAsSafeAttribute () { } } // SecuritySafeCriticalAttribute: // Indicates that the code may contain violations to the security [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false )] sealed public class SecuritySafeCriticalAttribute : System.Attribute { public SecuritySafeCriticalAttribute () { } } // SecurityTransparentAttribute: // Indicates the assembly contains only transparent code. // Security [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false )] sealed public class SecurityTransparentAttribute : System.Attribute { public SecurityTransparentAttribute () {} } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TriState.cs
- TreeNodeEventArgs.cs
- FieldBuilder.cs
- InheritanceContextChangedEventManager.cs
- XmlCharCheckingReader.cs
- FactoryGenerator.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- XhtmlConformanceSection.cs
- ProfileSettingsCollection.cs
- WebUtil.cs
- DocComment.cs
- ClonableStack.cs
- COM2ExtendedBrowsingHandler.cs
- DataGridAutoFormat.cs
- PenThreadWorker.cs
- Message.cs
- Registry.cs
- SchemaImporter.cs
- SafeProcessHandle.cs
- EncoderBestFitFallback.cs
- SettingsBindableAttribute.cs
- FrameworkName.cs
- ASCIIEncoding.cs
- X509ChainPolicy.cs
- Privilege.cs
- Size3DValueSerializer.cs
- _ChunkParse.cs
- PeerNodeTraceRecord.cs
- ManagedIStream.cs
- ImageFormatConverter.cs
- SecurityPolicySection.cs
- ParsedRoute.cs
- RectValueSerializer.cs
- EncodingInfo.cs
- StylusPoint.cs
- XmlEntity.cs
- SoapSchemaImporter.cs
- SoapMessage.cs
- UIElementPropertyUndoUnit.cs
- NonClientArea.cs
- EventlogProvider.cs
- SelectionItemPattern.cs
- figurelength.cs
- BitmapEffectInput.cs
- XmlSchemaCollection.cs
- BindingOperations.cs
- processwaithandle.cs
- SharedDp.cs
- CatalogZone.cs
- DataGridViewTopRowAccessibleObject.cs
- DecoratedNameAttribute.cs
- GacUtil.cs
- LocatorGroup.cs
- BindingOperations.cs
- XPathParser.cs
- PackUriHelper.cs
- Context.cs
- DataGridAddNewRow.cs
- PrintDocument.cs
- HtmlInputHidden.cs
- ConfigXmlComment.cs
- QueryResults.cs
- StringFormat.cs
- TypeConverterMarkupExtension.cs
- LocatorGroup.cs
- SingleResultAttribute.cs
- XmlSignatureProperties.cs
- Column.cs
- Token.cs
- XamlVector3DCollectionSerializer.cs
- ElementNotEnabledException.cs
- ValidationPropertyAttribute.cs
- DataViewManagerListItemTypeDescriptor.cs
- FixUpCollection.cs
- MembershipPasswordException.cs
- Win32.cs
- MarkupExtensionParser.cs
- TemplateContainer.cs
- AuthenticateEventArgs.cs
- PkcsUtils.cs
- MissingSatelliteAssemblyException.cs
- ProcessHost.cs
- SiteMapNodeCollection.cs
- TypographyProperties.cs
- StopStoryboard.cs
- BaseAsyncResult.cs
- Adorner.cs
- ExpressionNormalizer.cs
- LogPolicy.cs
- InheritanceAttribute.cs
- RecoverInstanceLocksCommand.cs
- DataKey.cs
- PublisherIdentityPermission.cs
- EntityParameterCollection.cs
- SoapSchemaMember.cs
- CollectionAdapters.cs
- DataServiceHost.cs
- ListSourceHelper.cs
- XhtmlBasicPageAdapter.cs
- EditCommandColumn.cs