Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / IntSecurity.cs / 1 / IntSecurity.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System; using System.Security; using System.Security.Permissions; [HostProtection(SharedState = true)] internal static class IntSecurity { public static readonly CodeAccessPermission UnmanagedCode = new SecurityPermission(SecurityPermissionFlag.UnmanagedCode); public static readonly CodeAccessPermission FullReflection = new ReflectionPermission(PermissionState.Unrestricted); public static string UnsafeGetFullPath(string fileName) { string full = fileName; FileIOPermission fiop = new FileIOPermission(PermissionState.None); fiop.AllFiles = FileIOPermissionAccess.PathDiscovery; fiop.Assert(); try { full = System.IO.Path.GetFullPath(fileName); } finally { CodeAccessPermission.RevertAssert(); } return full; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaSet.cs
- WindowsTokenRoleProvider.cs
- VariableAction.cs
- MostlySingletonList.cs
- ManagementScope.cs
- XmlSchemas.cs
- CounterSample.cs
- webbrowsersite.cs
- BinaryConverter.cs
- XmlNamespaceManager.cs
- HttpListenerRequestTraceRecord.cs
- FormViewUpdateEventArgs.cs
- GridViewRow.cs
- CachedTypeface.cs
- TrackingProfileSerializer.cs
- MailAddress.cs
- TemplateBindingExpression.cs
- TableChangeProcessor.cs
- AnchoredBlock.cs
- ImageCreator.cs
- StyleTypedPropertyAttribute.cs
- BaseProcessor.cs
- WebHttpBinding.cs
- XPathNodeInfoAtom.cs
- Win32SafeHandles.cs
- CompositionAdorner.cs
- WindowsSolidBrush.cs
- TemplateContainer.cs
- Bidi.cs
- FigureParagraph.cs
- TableCellCollection.cs
- VScrollBar.cs
- URIFormatException.cs
- Literal.cs
- Vector.cs
- RectValueSerializer.cs
- PackUriHelper.cs
- SqlConnectionHelper.cs
- Accessible.cs
- DeviceContext.cs
- Style.cs
- XXXInfos.cs
- Compensate.cs
- HttpServerProtocol.cs
- ViewManager.cs
- SessionEndingEventArgs.cs
- DynamicRenderer.cs
- NestPullup.cs
- SystemResources.cs
- xmlfixedPageInfo.cs
- ColumnResizeAdorner.cs
- DbProviderSpecificTypePropertyAttribute.cs
- TraceSwitch.cs
- WebColorConverter.cs
- SharedDp.cs
- ExpressionCopier.cs
- CodeCompileUnit.cs
- ObjectContext.cs
- UIElementAutomationPeer.cs
- DSASignatureDeformatter.cs
- SecurityContext.cs
- ListDependantCardsRequest.cs
- DataServicePagingProviderWrapper.cs
- ColumnResult.cs
- HandlerBase.cs
- RadioButtonDesigner.cs
- StructuralObject.cs
- BulletedListDesigner.cs
- EncoderFallback.cs
- PageCatalogPart.cs
- ModelItemCollectionImpl.cs
- DrawingCollection.cs
- DataGridViewCellStyle.cs
- AmbientValueAttribute.cs
- SqlColumnizer.cs
- ObjectStateFormatter.cs
- SpStreamWrapper.cs
- SingleAnimationUsingKeyFrames.cs
- Utils.cs
- EntryPointNotFoundException.cs
- EncryptedPackage.cs
- FormatterServices.cs
- XmlSchemaComplexContent.cs
- EndPoint.cs
- SafeArrayRankMismatchException.cs
- TableItemProviderWrapper.cs
- TextRangeProviderWrapper.cs
- QuestionEventArgs.cs
- JsonServiceDocumentSerializer.cs
- DependencyObjectType.cs
- CodeStatement.cs
- HttpResponseMessageProperty.cs
- RoutedPropertyChangedEventArgs.cs
- XmlSchema.cs
- Rect3DConverter.cs
- WindowsTokenRoleProvider.cs
- OperationCanceledException.cs
- GridViewDeletedEventArgs.cs
- NameTable.cs
- ISAPIWorkerRequest.cs