Поделиться через


ModelAnnotationClass Class

Represents a base metadata class for annotations in model elements.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.SchemaModel.ModelPropertyContainerClass
    Microsoft.Data.Schema.SchemaModel.ModelAnnotationClass

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public NotInheritable Class ModelAnnotationClass _
    Inherits ModelPropertyContainerClass
public sealed class ModelAnnotationClass : ModelPropertyContainerClass
public ref class ModelAnnotationClass sealed : public ModelPropertyContainerClass
[<Sealed>]
type ModelAnnotationClass =  
    class
        inherit ModelPropertyContainerClass
    end
public final class ModelAnnotationClass extends ModelPropertyContainerClass

The ModelAnnotationClass type exposes the following members.

Properties

  Name Description
Public property AnnotationType Gets the Type of the annotation.
Public property ClassName Gets the annotation class name.
Public property IsSerializable Gets a value that indicates whether the annotation is serializable.
Public property NameMandatory Gets a value that indicates whether annotations of this class must always have a name.
Public property PropertyClasses Gets a list of metadata objects for the properties in this element. (Inherited from ModelPropertyContainerClass.)
Public property RequiresControllerLock Gets a value that indicates whether annotations of this type require a controller lock.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetPropertyClass Returns the property metadata object that are identified by the provided name. (Inherited from ModelPropertyContainerClass.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnExternalPropertyClassAdded Called when an external property class is registered for this element. (Inherited from ModelPropertyContainerClass.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace

ModelPropertyContainerClass