Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

INormalizeForIsolatedStorage Interface

Enables comparisons between an isolated store and an application domain and assembly's evidence.

Namespace:  System.IO.IsolatedStorage
Assembly:  mscorlib (in mscorlib.dll)
[ComVisibleAttribute(true)]
public interface INormalizeForIsolatedStorage

The INormalizeForIsolatedStorage type exposes the following members.

  NameDescription
Public methodNormalizeWhen overridden in a derived class, returns a normalized copy of the object on which it is called.
Top

Isolated storage uses evidence about an assembly in order to identify it and provide it with a unique file storage location. When an assembly requests a store, its evidence (as presented by the host that loaded it) is processed and compared with the evidence used to create the existing stores. This determines if you need to create a new store or if one already exists for the assembly in question. Due to the comparison technique used, pieces of evidence that are functionally equivalent might not result in a true comparison if the serialized forms are not identical. When implementing custom evidence, consider whether this is the case for your evidence class and, if so, implement INormalizeForIsolatedStorage. For evidence that implements this interface, the Normalize method is called and comparisons are based on the normalized copy of the object returned by that method.

Notes to Implementers

Implement this interface when you are implementing custom evidence and need to determine if a store already exists. Serialized objects should not be used for comparisons in some instances, such as that of case sensitive strings. For example, www.MSN.com is equal to WWW.msn.com and will return a true when compared. To create an INormalizeForIsolatedStorage object, you need to implement the Normalize method.

Notes to Callers

Call the methods of this interface to normalize the instance before making comparisons between an assembly's evidence and currently existing isolated stores.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.