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 {
	[SecurityCriticalAttribute]
	[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, 
		Flags = SecurityPermissionFlag.UnmanagedCode)]
	get;
}

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.

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

SecurityCriticalAttribute

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

.NET Framework
Available since 2.0
Return to top
Show: