IsolatedStorageFileStream::SafeFileHandle Property
Gets a SafeFileHandle object that represents the operating system file handle for the file that the current IsolatedStorageFileStream object encapsulates.
Assembly: mscorlib (in mscorlib.dll)
public: property SafeFileHandle^ SafeFileHandle { [SecurityCriticalAttribute] [SecurityPermissionAttribute(SecurityAction::InheritanceDemand, Flags = SecurityPermissionFlag::UnmanagedCode)] virtual SafeFileHandle^ get() override; }
Property Value
Type: Microsoft.Win32.SafeHandles::SafeFileHandle^A SafeFileHandle object that represents the operating system file handle for the file that the current IsolatedStorageFileStream object encapsulates.
| Exception | Condition |
|---|---|
| IsolatedStorageException | The SafeFileHandle property always generates this exception. |
The SafeFileHandle property is not supported and always generates an IsolatedStorageException exception.
for the ability to access unmanaged code. Associated enumeration: SecurityPermissionFlag::UnmanagedCode Security action: LinkDemand
for the ability to access unmanaged code. Associated enumeration: SecurityPermissionFlag::UnmanagedCode Security action: InheritanceDemand
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 2.0