CodeDomSerializer.SerializePropertiesToResources(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[]) 方法

定义

将指定的属性序列化为资源。Serializes the specified properties to resources.

protected:
 void SerializePropertiesToResources(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::CodeDom::CodeStatementCollection ^ statements, System::Object ^ value, cli::array <Attribute ^> ^ filter);
protected void SerializePropertiesToResources (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatementCollection statements, object value, Attribute[] filter);
member this.SerializePropertiesToResources : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeStatementCollection * obj * Attribute[] -> unit
Protected Sub SerializePropertiesToResources (manager As IDesignerSerializationManager, statements As CodeStatementCollection, value As Object, filter As Attribute())

参数

manager
IDesignerSerializationManager

要在序列化过程中使用的序列化管理器。The serialization manager to use during serialization.

statements
CodeStatementCollection

要在序列化过程中使用的语句集合。A collection of statements to use during serialization. 资源序列化程序使用它来编写资源创建语句,但不会有单个属性赋值语句,因为所有属性都被序列化为资源。The resource serializer uses this to write resource creation statements, but will not have individual property assign statements because all the properties are serialized to a resource.

value
Object

要对其属性进行反序列化的对象。The object to deserialize properties for.

filter
Attribute[]

要应用于属性的可选筛选器。An optional filter to apply to the properties.

适用于