AttributeTableBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and populates an AttributeTable that is used by the MetadataStore to provide attribute lookup and registration.
public ref class AttributeTableBuilder
public class AttributeTableBuilder
type AttributeTableBuilder = class
Public Class AttributeTableBuilder
- Inheritance
-
AttributeTableBuilder
Remarks
Use AddCallback, AddCustomAttributes, and AddTable to populate the builder, then call CreateTable to acquire an AttributeTable containing the desired collection of attributes.
Constructors
AttributeTableBuilder() |
Creates a new instance of the AttributeTableBuilder class. |
Methods
AddCallback(Type, AttributeCallback) |
Specifies a callback that will be invoked when metadata for the given type is needed. |
AddCustomAttributes(Type, Attribute[]) |
Adds the contents of the provided attributes to this builder. |
AddCustomAttributes(Type, DependencyProperty, Attribute[]) |
Adds the contents of the provided attributes to this builder. |
AddCustomAttributes(Type, MemberDescriptor, Attribute[]) |
Adds the contents of the provided attributes to this builder. |
AddCustomAttributes(Type, MemberInfo, Attribute[]) |
Adds the contents of the provided attributes to this builder. |
AddCustomAttributes(Type, String, Attribute[]) |
Adds the contents of the provided attributes to this builder. |
AddTable(AttributeTable) |
Adds the contents of the provided attribute table to this builder. |
CreateTable() |
Creates an attribute table that contains all of the attribute definitions provided through AddCustomAttributes(Type, Attribute[]) calls. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
ValidateTable() |
Verifies that the attribute table that is being built contains valid attribute information. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om