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
- OleDbEnumerator.cs
- ToolStripPanelRenderEventArgs.cs
- SoapFault.cs
- DBCSCodePageEncoding.cs
- EdmItemError.cs
- FocusChangedEventArgs.cs
- PageEventArgs.cs
- MobileCategoryAttribute.cs
- ClipboardProcessor.cs
- DbMetaDataCollectionNames.cs
- RealProxy.cs
- GridViewUpdatedEventArgs.cs
- ClusterSafeNativeMethods.cs
- SubqueryRules.cs
- KnownBoxes.cs
- SelectionEditor.cs
- PrintDialog.cs
- TypeToStringValueConverter.cs
- ObjectSet.cs
- RuntimeArgumentHandle.cs
- Emitter.cs
- OracleTransaction.cs
- CreateUserErrorEventArgs.cs
- ListComponentEditor.cs
- MimeMapping.cs
- GenericTypeParameterBuilder.cs
- RowBinding.cs
- DeleteIndexBinder.cs
- ThicknessAnimation.cs
- UIElementIsland.cs
- CodeBlockBuilder.cs
- XmlSchemaComplexContent.cs
- PolyBezierSegmentFigureLogic.cs
- AssociationSetEnd.cs
- StoreContentChangedEventArgs.cs
- Dictionary.cs
- RawStylusInputReport.cs
- BlurBitmapEffect.cs
- SendMailErrorEventArgs.cs
- WebPartCancelEventArgs.cs
- ShaderEffect.cs
- HtmlDocument.cs
- QuaternionIndependentAnimationStorage.cs
- ProcessStartInfo.cs
- LogicalExpr.cs
- ModelPerspective.cs
- NetCodeGroup.cs
- DSGeneratorProblem.cs
- ViewCellSlot.cs
- SplineKeyFrames.cs
- JpegBitmapDecoder.cs
- TagMapCollection.cs
- FacetEnabledSchemaElement.cs
- LookupBindingPropertiesAttribute.cs
- RowUpdatedEventArgs.cs
- Table.cs
- SafeCryptoHandles.cs
- SizeAnimation.cs
- DataSourceSelectArguments.cs
- C14NUtil.cs
- EnvelopedPkcs7.cs
- EventLogException.cs
- QueryContinueDragEventArgs.cs
- SqlExpander.cs
- RequestNavigateEventArgs.cs
- PropertyTabChangedEvent.cs
- ClosableStream.cs
- UnsafeNativeMethodsMilCoreApi.cs
- CustomAttributeBuilder.cs
- ApplyImportsAction.cs
- MessageVersion.cs
- FixedSOMTableRow.cs
- PrinterUnitConvert.cs
- KeyboardEventArgs.cs
- ClientUtils.cs
- System.Data_BID.cs
- IODescriptionAttribute.cs
- HttpResponse.cs
- OpenFileDialog.cs
- SerializationInfo.cs
- HyperlinkAutomationPeer.cs
- Annotation.cs
- CheckedPointers.cs
- RotateTransform3D.cs
- ValueUnavailableException.cs
- WaitForChangedResult.cs
- DriveInfo.cs
- Operator.cs
- EpmSyndicationContentDeSerializer.cs
- ToolTipService.cs
- DataGrid.cs
- NullReferenceException.cs
- FloaterBaseParaClient.cs
- CodeAccessPermission.cs
- ParameterModifier.cs
- EnumUnknown.cs
- SqlRemoveConstantOrderBy.cs
- OdbcConnectionHandle.cs
- AssemblyUtil.cs
- ServiceOperation.cs