共用方式為


CodeGenerationUtilities.GetAttributeProperties(DomainClass, Int32) Method

Definition

Returns all DomainProperties defined on the given DomainClass that will be serialized as XML attribute.

public:
 static System::Collections::Generic::List<Microsoft::VisualStudio::Modeling::DslDefinition::DomainProperty ^> ^ GetAttributeProperties(Microsoft::VisualStudio::Modeling::DslDefinition::DomainClass ^ domainClass, [Runtime::InteropServices::Out] int % calculatedAttribPropCount);
public static System.Collections.Generic.List<Microsoft.VisualStudio.Modeling.DslDefinition.DomainProperty> GetAttributeProperties (Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass domainClass, out int calculatedAttribPropCount);
static member GetAttributeProperties : Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass * int -> System.Collections.Generic.List<Microsoft.VisualStudio.Modeling.DslDefinition.DomainProperty>
Public Shared Function GetAttributeProperties (domainClass As DomainClass, ByRef calculatedAttribPropCount As Integer) As List(Of DomainProperty)

Parameters

domainClass
DomainClass

DomainClass whose domain properties that are seralized as XML attributes will be returned.

calculatedAttribPropCount
Int32

The number of calculated properties among the returned domain properties.

Returns

All DomainProperties defined on the given DomainClass that will be serialized as XML attribute. Empty list if none is found.

Applies to