CodeDomSerializer.SerializePropertiesToResources 方法

定义

将指定的属性序列化为资源。

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

要在序列化过程中使用的序列化管理器。

statements
CodeStatementCollection

要在序列化过程中使用的语句集合。 资源序列化程序使用它来编写资源创建语句,但不会有单个属性赋值语句,因为所有属性都被序列化为资源。

value
Object

要对其属性进行反序列化的对象。

filter
Attribute[]

要应用于属性的可选筛选器。

适用于