CodeDomSerializerBase::DeserializePropertiesFromResources Method (IDesignerSerializationManager^, Object^, array<Attribute^>^)

 

Deserializes properties on the given object from the invariant culture’s resource bundle.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

protected:
void DeserializePropertiesFromResources(
	IDesignerSerializationManager^ manager,
	Object^ value,
	array<Attribute^>^ filter
)

Parameters

manager
Type: System.ComponentModel.Design.Serialization::IDesignerSerializationManager^

The IDesignerSerializationManager to use for serialization.

value
Type: System::Object^

The object from which the properties are to be deserialized.

filter
Type: array<System::Attribute^>^

An Attribute array that filters which properties will be deserialized.

The DeserializePropertiesFromResources 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 DeserializePropertiesFromResources 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.

.NET Framework
Available since 2.0
Return to top
Show: