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
- TimeStampChecker.cs
- StorageFunctionMapping.cs
- ControllableStoryboardAction.cs
- OletxVolatileEnlistment.cs
- AccessViolationException.cs
- AutomationProperty.cs
- ApplicationInterop.cs
- TransportSecurityProtocol.cs
- Inline.cs
- Label.cs
- Point4D.cs
- XmlSchemaAttribute.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SafePipeHandle.cs
- StdValidatorsAndConverters.cs
- StrongNameUtility.cs
- TextShapeableCharacters.cs
- OrderByQueryOptionExpression.cs
- HttpChannelHelper.cs
- MethodExpr.cs
- SqlUserDefinedTypeAttribute.cs
- FloaterParagraph.cs
- TextBoxLine.cs
- ConfigurationValidatorBase.cs
- TargetControlTypeAttribute.cs
- WorkflowNamespace.cs
- SettingsContext.cs
- TypeDescriptionProvider.cs
- ChoiceConverter.cs
- ActionItem.cs
- Attributes.cs
- TrackingLocationCollection.cs
- SqlVisitor.cs
- IPGlobalProperties.cs
- _ServiceNameStore.cs
- MediaTimeline.cs
- XmlSchemaExternal.cs
- BaseTransportHeaders.cs
- CodeNamespaceCollection.cs
- OpenTypeLayoutCache.cs
- IISMapPath.cs
- EditorPart.cs
- GeometryHitTestResult.cs
- RenderOptions.cs
- CompilerInfo.cs
- DataControlReference.cs
- MsmqBindingElementBase.cs
- BinaryObjectReader.cs
- PreviewKeyDownEventArgs.cs
- path.cs
- StrokeCollectionConverter.cs
- NumericUpDownAccelerationCollection.cs
- ByteFacetDescriptionElement.cs
- TypefaceMetricsCache.cs
- XmlMembersMapping.cs
- FunctionQuery.cs
- XmlIlVisitor.cs
- InvalidProgramException.cs
- CodeExporter.cs
- PingReply.cs
- DataSourceControl.cs
- GridViewDeletedEventArgs.cs
- MultiBindingExpression.cs
- OrderByQueryOptionExpression.cs
- DeviceFiltersSection.cs
- StatusBar.cs
- WebPartConnectionsConfigureVerb.cs
- Matrix.cs
- RegexCompiler.cs
- DataGridHeaderBorder.cs
- SingleTagSectionHandler.cs
- DBSqlParserColumnCollection.cs
- SignatureToken.cs
- ContentOperations.cs
- ErrorHandler.cs
- ContentAlignmentEditor.cs
- Metadata.cs
- XmlValidatingReaderImpl.cs
- Maps.cs
- KerberosReceiverSecurityToken.cs
- OperationContextScope.cs
- BitmapEffectState.cs
- StyleBamlRecordReader.cs
- XmlTextReaderImpl.cs
- HierarchicalDataBoundControl.cs
- SQLSingle.cs
- AuthenticationModulesSection.cs
- KeyGestureValueSerializer.cs
- PersonalizationProviderCollection.cs
- COM2Enum.cs
- DBNull.cs
- WindowsListView.cs
- SqlProcedureAttribute.cs
- ParallelActivityDesigner.cs
- DebugTraceHelper.cs
- ObjectListFieldsPage.cs
- FactoryId.cs
- _NegoState.cs
- MetafileHeaderWmf.cs
- DataError.cs