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
- SerializationSectionGroup.cs
- WebServiceClientProxyGenerator.cs
- DefaultValueConverter.cs
- Intellisense.cs
- MessagingDescriptionAttribute.cs
- PresentationAppDomainManager.cs
- ComPlusInstanceProvider.cs
- Int32Rect.cs
- dbdatarecord.cs
- Tokenizer.cs
- SettingsPropertyValueCollection.cs
- StylusButtonCollection.cs
- CreateDataSourceDialog.cs
- HandlerFactoryWrapper.cs
- SerializationEventsCache.cs
- SafeSystemMetrics.cs
- DynamicMethod.cs
- WindowsListViewItemCheckBox.cs
- SizeChangedEventArgs.cs
- mil_commands.cs
- FragmentQueryKB.cs
- TypeInitializationException.cs
- Attachment.cs
- FontUnitConverter.cs
- BamlRecords.cs
- Visual3DCollection.cs
- CancelAsyncOperationRequest.cs
- XmlSchemaComplexContentRestriction.cs
- FileNotFoundException.cs
- XsltConvert.cs
- EventLogEntryCollection.cs
- InternalsVisibleToAttribute.cs
- TreeNodeSelectionProcessor.cs
- HeaderedItemsControl.cs
- TagPrefixCollection.cs
- Color.cs
- DependencyPropertyValueSerializer.cs
- ImageBrush.cs
- IdentityManager.cs
- SafeEventLogReadHandle.cs
- MarginsConverter.cs
- AspNetSynchronizationContext.cs
- WebSysDescriptionAttribute.cs
- CapabilitiesRule.cs
- CommandDevice.cs
- InternalRelationshipCollection.cs
- EpmAttributeNameBuilder.cs
- loginstatus.cs
- MembershipUser.cs
- MdImport.cs
- Module.cs
- BrowserDefinition.cs
- EndEvent.cs
- ColorAnimationUsingKeyFrames.cs
- _LazyAsyncResult.cs
- XmlReflectionImporter.cs
- InternalReceiveMessage.cs
- DataSourceCacheDurationConverter.cs
- EncoderReplacementFallback.cs
- WebScriptServiceHost.cs
- GifBitmapEncoder.cs
- ReflectPropertyDescriptor.cs
- HierarchicalDataTemplate.cs
- IntranetCredentialPolicy.cs
- BooleanKeyFrameCollection.cs
- ConnectionPointCookie.cs
- ResXResourceSet.cs
- HeaderCollection.cs
- SafeNativeMethods.cs
- MenuItemBindingCollection.cs
- DataGridViewCheckBoxCell.cs
- Constraint.cs
- Vars.cs
- CheckBoxRenderer.cs
- HMACSHA1.cs
- ResourceDictionaryCollection.cs
- XmlNamespaceMapping.cs
- BuilderElements.cs
- CaseExpr.cs
- BindingMemberInfo.cs
- BaseTemplateCodeDomTreeGenerator.cs
- IDQuery.cs
- TreeView.cs
- FormParameter.cs
- StdRegProviderWrapper.cs
- BaseProcessor.cs
- XmlReflectionMember.cs
- XmlBufferReader.cs
- ValueType.cs
- CheckBoxDesigner.cs
- RSAPKCS1SignatureDeformatter.cs
- ExpressionBinding.cs
- ListViewEditEventArgs.cs
- ExchangeUtilities.cs
- QuotedPrintableStream.cs
- StatusBarItem.cs
- MapPathBasedVirtualPathProvider.cs
- SmiRecordBuffer.cs
- ReferencedCollectionType.cs
- XmlRootAttribute.cs