ElementTypeDescriptor.CreatePropertyDescriptor 方法
创建模型元素的属性的描述符。
命名空间: Microsoft.VisualStudio.Modeling.Design
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
语法
声明
Protected Overridable Function CreatePropertyDescriptor ( _
requestor As ModelElement, _
domainPropertyInfo As DomainPropertyInfo, _
attributes As Attribute() _
) As ElementPropertyDescriptor
protected virtual ElementPropertyDescriptor CreatePropertyDescriptor(
ModelElement requestor,
DomainPropertyInfo domainPropertyInfo,
Attribute[] attributes
)
参数
- requestor
类型:Microsoft.VisualStudio.Modeling.ModelElement
已描述的字段的特性的模型元素。
- domainPropertyInfo
类型:Microsoft.VisualStudio.Modeling.DomainPropertyInfo
字段属性的元数据。
- attributes
类型:array<System.Attribute[]
包含特性应用于字段的特性的数组。
返回值
类型:Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
模型元素的属性的类型描述符。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。