DesignerSerializationVisibility 枚举

定义

指定属性对设计时序列化程序所具有的可见性。Specifies the visibility a property has to the design-time serializer.

public enum class DesignerSerializationVisibility
[System.Runtime.InteropServices.ComVisible(true)]
public enum DesignerSerializationVisibility
type DesignerSerializationVisibility = 
Public Enum DesignerSerializationVisibility
继承
DesignerSerializationVisibility
属性

字段

Content 2

代码生成器产生对象内容的代码,而不是对象本身的代码。The code generator produces code for the contents of the object, rather than for the object itself.

Hidden 0

代码生成器不生成对象的代码。The code generator does not produce code for the object.

Visible 1

代码生成器生成对象的代码。The code generator produces code for the object.

示例

有关使用DesignerSerializationVisibility枚举器的示例, 请参阅上DesignerSerializationVisibilityAttribute的示例代码。For an example of using the DesignerSerializationVisibility enumerator, please see the sample code at DesignerSerializationVisibilityAttribute.

注解

可视化设计器使用DesignerSerializationVisibility值指示应检查和保存属性或事件的哪些方面。A visual designer uses a DesignerSerializationVisibility value to indicate which aspects of the property or event should be examined and saved.

适用于

另请参阅