Deserializes properties on the given object from the invariant culture’s resource bundle.
Assembly: System.Design (in System.Design.dll)
protected void DeserializePropertiesFromResources( IDesignerSerializationManager manager, Object value, Attribute filter )
- Type: System.ComponentModel.Design.Serialization.IDesignerSerializationManager
The IDesignerSerializationManager to use for serialization.
- Type: System.Object
The object from which the properties are to be deserialized.
The method is a helper method that derived classes can call. It looks for properties on the given object and attempts to load their values out of the invariant culture’s resource bundle. This is generally used to handle design-time properties that are not emitted into source code. It should not be used for localized properties because it only operates on the invariant culture.
This method inspects all of the properties of the value parameter that match the attributes specified by the filter parameter, and then checks for those properties in a resource binary object. This is useful for deserializing properties that cannot be represented in code, such as design-time properties.
This method requires that a designer loader offers an IResourceService to read resources. If the IResourceService provides a ResXResourceReader for the invariant culture, then will read resources from the XML resource (.resx) file’s metadata section, which is not included in final compiled code. If this service is not available, no resources will be read.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.