This documentation is archived and is not being maintained.

IsolatedStorageFileStream.SafeFileHandle Property

Gets a SafeFileHandle object that represents the operating system file handle for the file that the current IsolatedStorageFileStream object encapsulates.

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)

public override SafeFileHandle SafeFileHandle { get; }
/** @property */
public SafeFileHandle get_SafeFileHandle ()

public override function get SafeFileHandle () : SafeFileHandle

Not applicable.

Property Value

A SafeFileHandle object that represents the operating system file handle for the file that the current IsolatedStorageFileStream object encapsulates.

Exception typeCondition

IsolatedStorageException

The SafeFileHandle property always generates this exception.

SecurityAction.LinkDemand

for full trust for the immediate caller. This member cannot be used by partially trusted code.

SecurityAction.InheritanceDemand

for full trust for inheritors. This class cannot be inherited by partially trusted code. Associated enumeration: UnmanagedCode

The SafeFileHandle property is not supported and always generates an IsolatedStorageException exception.

  • SecurityPermission  for the ability to access unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode Security action: LinkDemand
  • SecurityPermission  for the ability to access unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode Security action: InheritanceDemand

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: