共用方式為


ElementTypeDescriptor.GetDomainPropertyAttributes Method

Returns an array of the custom attributes that are applied to the described property.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'宣告
Protected Function GetDomainPropertyAttributes ( _
    domainPropertyInfo As DomainPropertyInfo _
) As Attribute()
protected Attribute[] GetDomainPropertyAttributes(
    DomainPropertyInfo domainPropertyInfo
)
protected:
array<Attribute^>^ GetDomainPropertyAttributes(
    DomainPropertyInfo^ domainPropertyInfo
)
member GetDomainPropertyAttributes : 
        domainPropertyInfo:DomainPropertyInfo -> Attribute[] 
protected function GetDomainPropertyAttributes(
    domainPropertyInfo : DomainPropertyInfo
) : Attribute[]

Parameters

Return Value

Type: array<System.Attribute[]
The array of the custom attributes that are applied to the described property.

Remarks

If the property has no custom attributes, then this method returns an empty array.

.NET Framework Security

See Also

Reference

ElementTypeDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace