PropertyGeneratedEventArgs 类

定义

OnPropertyGenerated 事件提供数据。Provides data for the OnPropertyGenerated event.

public ref class PropertyGeneratedEventArgs sealed : EventArgs
public sealed class PropertyGeneratedEventArgs : EventArgs
type PropertyGeneratedEventArgs = class
    inherit EventArgs
Public NotInheritable Class PropertyGeneratedEventArgs
Inherits EventArgs
继承
PropertyGeneratedEventArgs

构造函数

PropertyGeneratedEventArgs()

初始化 PropertyGeneratedEventArgs 类的新实例。Initializes a new instance of the PropertyGeneratedEventArgs class.

PropertyGeneratedEventArgs(MetadataItem, String, CodeTypeReference)

使用指定的属性源、支持字段名称和返回类型初始化 PropertyGeneratedEventArgs 类的新实例。Initializes a new instance of the PropertyGeneratedEventArgs class with the specified property source, backing field name, and return type.

属性

AdditionalAttributes

获取将添加到属性中的特性 List(CodeAttributeDeclaration)Gets a List(CodeAttributeDeclaration) of attributes that will be added to the property.

AdditionalGetStatements

获取一个 List(CodeStatement),其中包含将添加到该属性的 get 语句。Gets a List(CodeStatement) containing the get statements to be added to the property.

AdditionalSetStatements

获取一个 List(CodeStatement),其中包含将添加到该属性的 set 语句。Gets a List(CodeStatement) containing the set statements to be added to the property.

BackingFieldName

获取支持该属性的字段的名称。Gets the name of the field that backs the property.

PropertySource

获取作为属性的源的 MetadataItem 对象。Gets the MetadataItem object that is the source of the property.

ReturnType

获取或设置属性的类型。Gets or sets the type of the property.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于